chore: use latest python image
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2024-08-13 07:07:21 +02:00
parent f3442b89b4
commit bc0133b4c8

View File

@ -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