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
|
WORKDIR /app
|
||||||
|
|
||||||
# Create non-root user and set permissions
|
# 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
|
useradd -r -u 1001 -g nodejs -d /home/nextjs -m nextjs
|
||||||
|
|
||||||
# Copy build output and static files
|
# Copy build output and static files
|
||||||
@ -22,4 +22,4 @@ USER nextjs
|
|||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
|
||||||
# Default command to start the server
|
# Default command to start the server
|
||||||
CMD ["bun", "apps/user/server.js"]
|
CMD ["bun", "apps/user/server.js"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user