feat: add docker permission related settings (#380)

This commit is contained in:
ilkeiii authored and GitHub committed 2024-03-25 08:51:07 +08:00
1 parent 78b5b8a78b
commit c696b59c4b
2 files changed
+15 -1

No files matched your search

+8 -1
View File
@@ -21,6 +21,13 @@ FROM alpine:3.14.2
LABEL maintainer="monkeyWie"
WORKDIR /app
COPY --from=go /app/dist/gopeed ./
COPY entrypoint.sh ./entrypoint.sh
RUN apk update && \
apk upgrade --no-cache && \
apk add --no-cache bash su-exec; \
chmod +x ./entrypoint.sh && \
rm -rf /var/cache/apk/*
VOLUME ["/app/storage"]
ENV PUID=0 PGID=0 UMASK=022
EXPOSE 9999
ENTRYPOINT ["./gopeed"]
ENTRYPOINT ["./entrypoint.sh"]
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
chown -R ${PUID}:${PGID} /app/Download
umask ${UMASK}
exec su-exec ${PUID}:${PGID} ./gopeed "$@"