chore: clean

This commit is contained in:
nyyu 2024-04-30 20:53:02 +02:00
parent 1c7166bbd4
commit 2a7599d86d
3 changed files with 5 additions and 9 deletions

View File

@ -1,11 +1,9 @@
FROM python:3.12.3-alpine FROM python:3.12.3-alpine
# set version label # set version label
ARG DOCKER_IMAGE_CREATED
ARG VERSION ARG VERSION
LABEL build_version="pyload docker version:- ${VERSION} Build-date:- ${DOCKER_IMAGE_CREATED}"
# add local files # add local files
COPY *.patch root/ / COPY root/ /
RUN \ RUN \
wget https://nexus.nyyu.dev/repository/files/alpine/7zip-23.01-r0.apk && \ wget https://nexus.nyyu.dev/repository/files/alpine/7zip-23.01-r0.apk && \
@ -18,7 +16,7 @@ RUN \
patch && \ patch && \
echo "**** install packages ****" && \ echo "**** install packages ****" && \
apk add --no-cache \ apk add --no-cache \
tini su-exec shadow \ shadow \
curl \ curl \
tesseract-ocr && \ tesseract-ocr && \
echo "**** install pyload ****" && \ echo "**** install pyload ****" && \
@ -31,8 +29,7 @@ RUN \
apk del --purge \ apk del --purge \
build-dependencies && \ build-dependencies && \
rm -rf \ rm -rf \
/tmp/* \ /tmp/* && \
/*.patch && \
echo "**** add user abc ****" && \ echo "**** add user abc ****" && \
adduser -D -u 911 -h /config abc adduser -D -u 911 -h /config abc
@ -40,5 +37,4 @@ RUN \
EXPOSE 8000 EXPOSE 8000
VOLUME /config VOLUME /config
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/start.sh"] CMD ["/start.sh"]

View File

@ -1,4 +1,4 @@
#!/usr/bin/with-contenv bash #!/bin/sh
# create our folders # create our folders
mkdir -p \ mkdir -p \

View File

@ -11,4 +11,4 @@ for f in /etc/cont-init.d/*; do
sh "$f" sh "$f"
done done
exec su-exec abc pyload --userdir /config --storagedir /downloads exec su abc -c 'pyload --userdir /config --storagedir /downloads'