chore: clean
This commit is contained in:
parent
1c7166bbd4
commit
2a7599d86d
10
Dockerfile
10
Dockerfile
@ -1,11 +1,9 @@
|
||||
FROM python:3.12.3-alpine
|
||||
# set version label
|
||||
ARG DOCKER_IMAGE_CREATED
|
||||
ARG VERSION
|
||||
LABEL build_version="pyload docker version:- ${VERSION} Build-date:- ${DOCKER_IMAGE_CREATED}"
|
||||
|
||||
# add local files
|
||||
COPY *.patch root/ /
|
||||
COPY root/ /
|
||||
|
||||
RUN \
|
||||
wget https://nexus.nyyu.dev/repository/files/alpine/7zip-23.01-r0.apk && \
|
||||
@ -18,7 +16,7 @@ RUN \
|
||||
patch && \
|
||||
echo "**** install packages ****" && \
|
||||
apk add --no-cache \
|
||||
tini su-exec shadow \
|
||||
shadow \
|
||||
curl \
|
||||
tesseract-ocr && \
|
||||
echo "**** install pyload ****" && \
|
||||
@ -31,8 +29,7 @@ RUN \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
/*.patch && \
|
||||
/tmp/* && \
|
||||
echo "**** add user abc ****" && \
|
||||
adduser -D -u 911 -h /config abc
|
||||
|
||||
@ -40,5 +37,4 @@ RUN \
|
||||
EXPOSE 8000
|
||||
VOLUME /config
|
||||
|
||||
ENTRYPOINT ["/sbin/tini", "--"]
|
||||
CMD ["/start.sh"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
#!/bin/sh
|
||||
|
||||
# create our folders
|
||||
mkdir -p \
|
||||
|
@ -11,4 +11,4 @@ for f in /etc/cont-init.d/*; do
|
||||
sh "$f"
|
||||
done
|
||||
|
||||
exec su-exec abc pyload --userdir /config --storagedir /downloads
|
||||
exec su abc -c 'pyload --userdir /config --storagedir /downloads'
|
||||
|
Loading…
Reference in New Issue
Block a user