refactor: simplify user and group creation in Dockerfile

This commit is contained in:
암냥 2025-12-08 17:56:54 +09:00
commit b1bb168e4a
No known key found for this signature in database

View file

@ -24,8 +24,8 @@ WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
RUN addgroup --system --gid 1001 nodejs RUN addgroup -g 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser -D -u 1001 -G nodejs nextjs
COPY --from=builder /app/public ./public COPY --from=builder /app/public ./public