Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit c7829b2

Browse files
committed
use root user
1 parent 46c01fe commit c7829b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ COPY --from=builder /app/main .
3939
RUN mkdir -p /data && \
4040
chown -R appuser:appgroup /app /data
4141

42-
# 切换到非 root 用户
43-
USER appuser
42+
# 注释掉非 root 用户,使用 root 运行
43+
# USER appuser
4444

4545
# 暴露端口
4646
EXPOSE 8080

0 commit comments

Comments
 (0)