diff --git a/Dockerfile b/Dockerfile index 34ebc9c..6de934d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.20 +FROM python:3.12.5-alpine # set version label ARG VERSION @@ -10,10 +10,10 @@ RUN \ apk add --no-cache --allow-untrusted 7zip*.apk && \ rm -f 7zip*.apk && \ echo "**** install packages ****" && \ + apk add --no-cache --virtual=build-dependencies \ + gcc musl-dev \ + curl-dev && \ apk add --no-cache \ - python3 \ - py3-pip \ - py3-curl \ shadow \ curl \ tesseract-ocr && \ @@ -23,6 +23,8 @@ RUN \ PYLOAD="pyload-ng[all]==${VERSION}"; \ fi && \ pip3 install --no-cache-dir --break-system-packages -U "${PYLOAD}" && \ + apk del --purge \ + build-dependencies && \ echo "**** add user abc ****" && \ adduser -D -u 911 -h /config abc