-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2-step docker build for arm/v6 and arm/v7
- Loading branch information
Gerrit Beine
committed
Sep 3, 2024
1 parent
f553974
commit 32ffe69
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |