Skip to content

Commit

Permalink
2-step docker build for arm/v6 and arm/v7
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit Beine committed Sep 3, 2024
1 parent f553974 commit 32ffe69
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
FROM python:3-alpine
FROM python:3.12-alpine as builder

RUN set -eux; \
apk add --no-cache \
gcc \
libc-dev \
libffi-dev

WORKDIR /app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

FROM python:3.12-alpine

WORKDIR /app

COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY knx2mqtt .

CMD [ "python", "./knx2mqtt" ]

0 comments on commit 32ffe69

Please sign in to comment.