chore: clean
This commit is contained in:
parent
012f06133d
commit
b932b39de2
3 changed files with 54 additions and 48 deletions
17
Dockerfile
17
Dockerfile
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue