Skip to content

Commit

Permalink
installing cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrink committed Nov 23, 2023
1 parent 386942a commit df2c423
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG ARCH=
FROM ${ARCH}python:3.10.13-slim-bookworm as builder
FROM ${ARCH}python:3.12.0-slim-bookworm as builder

WORKDIR /enviroplus

Expand All @@ -10,18 +10,18 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
python3-pip

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
build-essential libssl-dev libffi-dev python3-dev
build-essential libssl-dev libffi-dev python3-dev cmake

COPY requirements.txt .

RUN pip3 install -r requirements.txt

FROM ${ARCH}python:3.10.13-slim-bookworm
FROM ${ARCH}python:3.12.0-slim-bookworm

WORKDIR /enviroplus

# Make sure you update Python version in path
COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages

COPY enviroplus_exporter.py .

Expand Down

0 comments on commit df2c423

Please sign in to comment.