This commit is contained in:
parent
ffd1ddc2e9
commit
6d7b423c63
17
Dockerfile
17
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM python:3.12.3-alpine
|
||||
FROM alpine:3.20
|
||||
# set version label
|
||||
ARG VERSION
|
||||
|
||||
@ -6,16 +6,14 @@ ARG VERSION
|
||||
COPY root/ /
|
||||
|
||||
RUN \
|
||||
wget https://nexus.nyyu.dev/repository/files/alpine/7zip-24.05-r0.apk && \
|
||||
wget -q https://nexus.nyyu.dev/repository/files/alpine/7zip-24.05-r0.apk && \
|
||||
apk add --no-cache --allow-untrusted 7zip*.apk && \
|
||||
rm -f 7zip*.apk && \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
build-base \
|
||||
curl-dev \
|
||||
patch && \
|
||||
echo "**** install packages ****" && \
|
||||
apk add --no-cache \
|
||||
python3 \
|
||||
py3-pip \
|
||||
py3-curl \
|
||||
shadow \
|
||||
curl \
|
||||
tesseract-ocr && \
|
||||
@ -25,11 +23,6 @@ RUN \
|
||||
PYLOAD="pyload-ng[all]==${VERSION}"; \
|
||||
fi && \
|
||||
pip3 install --no-cache-dir --break-system-packages -U "${PYLOAD}" && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/tmp/* && \
|
||||
echo "**** add user abc ****" && \
|
||||
adduser -D -u 911 -h /config abc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user