docker-pyload-ng/Dockerfile
nyyu 93902ce55e
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline failed
fix: deps python 3.13
2024-10-09 08:33:12 +02:00

36 lines
1017 B
Docker

FROM python:3.13.0-alpine
# set version label
ARG VERSION
# add local files
COPY root/ /
RUN \
wget -q https://nexus.nyyu.dev/repository/files/alpine/7zip-24.08-r0.apk && \
apk add --no-cache --allow-untrusted 7zip*.apk && \
rm -f 7zip*.apk && \
echo "**** install packages ****" && \
apk add --no-cache --virtual=build-dependencies \
gcc git musl-dev \
curl-dev && \
apk add --no-cache \
shadow \
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 --no-cache-dir --break-system-packages -U "git+https://github.com/edgarrmondragon/msgspec.git@py313" legacy-cgi "${PYLOAD}" && \
apk del --purge \
build-dependencies && \
echo "**** add user abc ****" && \
adduser -D -u 911 -h /config abc
# ports and volumes
EXPOSE 8000
VOLUME /config
CMD ["/start.sh"]