mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-06-10 23:47:29 +00:00
fix: Dockerfile 添加非 root 用户运行应用,提升容器安全性
This commit is contained in:
@@ -14,4 +14,8 @@ RUN unzip netdisk-fast-download-bin.zip && \
|
|||||||
|
|
||||||
EXPOSE 6400 6401
|
EXPOSE 6400 6401
|
||||||
|
|
||||||
|
RUN addgroup --system appgroup && adduser --system --ingroup appgroup appuser && \
|
||||||
|
chown -R appuser:appgroup /app
|
||||||
|
USER appuser
|
||||||
|
|
||||||
ENTRYPOINT ["sh", "run.sh"]
|
ENTRYPOINT ["sh", "run.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user