This commit is contained in:
xuyue committed 2025-06-15 22:11:44 +08:00
1 parent 93768b3a3b
commit e5e9115c50
3 files changed
+11 -1

No files matched your search

+5
View File
@@ -36,6 +36,11 @@ COPY . .
RUN chown -R appuser:appuser /app \
&& chmod +x /app/entrypoint.sh
# 在最终阶段,创建必要的目录并设置权限
RUN mkdir -p /app/media \
&& chown -R appuser:appuser /app/media \
&& chmod 755 /app/media
# 切换到非root用户
USER appuser