test
This commit is contained in:
1 parent
641d4a84b4
commit
2dc1c3b005
1 file changed
+4
-2
+4
-2
@@ -32,8 +32,10 @@ COPY --from=builder /usr/local/bin/ /usr/local/bin/
|
||||
# 复制应用代码
|
||||
COPY . .
|
||||
|
||||
# 设置权限
|
||||
RUN chown -R appuser:appuser /app \
|
||||
# 创建media目录并设置权限
|
||||
RUN mkdir -p /app/media \
|
||||
&& chown -R appuser:appuser /app \
|
||||
&& chmod -R 755 /app/media \
|
||||
&& chmod +x /app/entrypoint.sh
|
||||
|
||||
# 切换到非root用户
|
||||
|
||||
Reference in new issue
Block a user