fix(docker): 修正Dockerfile中groupadd命令的语法错误
Some checks failed
CI / build (20.15.1) (push) Failing after 15m38s
Some checks failed
CI / build (20.15.1) (push) Failing after 15m38s
修复addgroup命令错误使用的问题,改用正确的groupadd命令
This commit is contained in:
parent
97187806e1
commit
42cf06c373
@ -5,7 +5,7 @@ FROM oven/bun:latest AS base
|
||||
WORKDIR /app
|
||||
|
||||
# Create non-root user and set permissions
|
||||
RUN addgroup -r -g 1001 nodejs && \
|
||||
RUN groupadd -r -g 1001 nodejs && \
|
||||
useradd -r -u 1001 -g nodejs -d /home/nextjs -m nextjs
|
||||
|
||||
# Copy build output and static files
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user