docker-pyload-ng/Dockerfile

34 lines
840 B
Docker
Raw Normal View History

2024-05-26 09:23:53 +02:00
FROM alpine:3.20
2022-01-24 17:20:57 +01:00
# set version label
ARG VERSION
2024-01-06 22:12:55 +01:00
# add local files
2024-04-30 20:53:02 +02:00
COPY root/ /
2022-01-24 17:20:57 +01:00
RUN \
2024-07-13 00:51:32 +02:00
wget -q https://nexus.nyyu.dev/repository/files/alpine/7zip-24.07-r0.apk && \
2023-12-26 09:54:12 +01:00
apk add --no-cache --allow-untrusted 7zip*.apk && \
rm -f 7zip*.apk && \
2022-01-24 17:20:57 +01:00
echo "**** install packages ****" && \
apk add --no-cache \
2024-05-26 09:23:53 +02:00
python3 \
py3-pip \
py3-curl \
2024-04-30 20:53:02 +02:00
shadow \
2022-01-24 17:20:57 +01:00
curl \
tesseract-ocr && \
echo "**** install pyload ****" && \
2022-11-21 11:21:08 +01:00
PYLOAD='https://github.com/pyload/pyload/archive/develop.zip#[all]' && \
if [[ -n "${VERSION}" && "${VERSION}" != "dev" ]]; then \
PYLOAD="pyload-ng[all]==${VERSION}"; \
fi && \
2024-01-06 22:12:55 +01:00
pip3 install --no-cache-dir --break-system-packages -U "${PYLOAD}" && \
echo "**** add user abc ****" && \
adduser -D -u 911 -h /config abc
2022-01-24 17:20:57 +01:00
# ports and volumes
EXPOSE 8000
VOLUME /config
2024-01-06 22:12:55 +01:00
CMD ["/start.sh"]