docker-pyload-ng/Dockerfile
nyyu eaeca0eec0
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful
7zip: 24.07
2024-07-13 00:51:32 +02:00

34 lines
840 B
Docker

FROM alpine:3.20
# set version label
ARG VERSION
# add local files
COPY root/ /
RUN \
wget -q https://nexus.nyyu.dev/repository/files/alpine/7zip-24.07-r0.apk && \
apk add --no-cache --allow-untrusted 7zip*.apk && \
rm -f 7zip*.apk && \
echo "**** install packages ****" && \
apk add --no-cache \
python3 \
py3-pip \
py3-curl \
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 "${PYLOAD}" && \
echo "**** add user abc ****" && \
adduser -D -u 911 -h /config abc
# ports and volumes
EXPOSE 8000
VOLUME /config
CMD ["/start.sh"]