chore: clean
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline failed

This commit is contained in:
nyyu 2024-12-31 11:11:42 +01:00
parent 012f06133d
commit b932b39de2
3 changed files with 54 additions and 48 deletions

View file

@ -1,20 +1,22 @@
FROM python:3.13.1-alpine
# set version label
ARG VERSION
ARG VERSION \
SEVENZIP_VERSION="24.09-r0"
ENV PIP_NO_CACHE_DIR=false \
PIP_ROOT_USER_ACTION=ignore
# add local files
COPY root/ /
RUN \
wget -q https://nexus.nyyu.dev/repository/files/alpine/7zip-24.09-r0.apk && \
apk add --no-cache --allow-untrusted 7zip*.apk && \
rm -f 7zip*.apk && \
wget -q https://nexus.nyyu.dev/repository/files/alpine/7zip-${SEVENZIP_VERSION}.apk && \
apk add --no-cache --allow-untrusted 7zip-${SEVENZIP_VERSION}.apk && \
rm -f 7zip-${SEVENZIP_VERSION}.apk && \
echo "**** install packages ****" && \
apk add --no-cache --virtual=build-dependencies \
gcc musl-dev \
curl-dev && \
apk add --no-cache \
shadow \
curl \
tesseract-ocr && \
echo "**** install pyload ****" && \
@ -22,7 +24,8 @@ RUN \
if [[ -n "${VERSION}" && "${VERSION}" != "dev" ]]; then \
PYLOAD="pyload-ng[all]==${VERSION}"; \
fi && \
pip3 install --no-cache-dir --break-system-packages -U legacy-cgi "${PYLOAD}" && \
pip3 install -U legacy-cgi "${PYLOAD}" && \
rm -rf /usr/local/share/doc && \
apk del --purge \
build-dependencies && \
echo "**** add user abc ****" && \
@ -30,6 +33,6 @@ RUN \
# ports and volumes
EXPOSE 8000
VOLUME /config
VOLUME /config /downloads
CMD ["/start.sh"]