docker-pyload-ng/Dockerfile
nyyu b932b39de2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful
chore: clean
2024-12-31 11:15:19 +01:00

38 lines
1.1 KiB
Docker

FROM python:3.13.1-alpine
# set version label
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-${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 \
curl \
tesseract-ocr && \
echo "**** install pyload ****" && \
PYLOAD='https://github.com/pyload/pyload/archive/develop.zip#[all]' && \
if [[ -n "${VERSION}" && "${VERSION}" != "dev" ]]; then \
PYLOAD="pyload-ng[all]==${VERSION}"; \
fi && \
pip3 install -U legacy-cgi "${PYLOAD}" && \
rm -rf /usr/local/share/doc && \
apk del --purge \
build-dependencies && \
echo "**** add user abc ****" && \
adduser -D -u 911 -h /config abc
# ports and volumes
EXPOSE 8000
VOLUME /config /downloads
CMD ["/start.sh"]