Alpine Linux 명령어로 수정

This commit is contained in:
dohyeons 2025-10-21 09:34:34 +09:00
parent 21688d3815
commit be1bd6a40a
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ RUN npm run build
FROM base AS runner FROM base AS runner
ENV NODE_ENV=production ENV NODE_ENV=production
# Create non-root user # Create non-root user (Alpine 방식)
RUN groupadd -r appgroup && useradd -r -g appgroup appuser RUN addgroup -S appgroup && adduser -S -G appgroup appuser
# Copy production node_modules # Copy production node_modules
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules