도커백엔드 수정
This commit is contained in:
parent
c076cd0b14
commit
c27817b4f3
|
|
@ -27,8 +27,8 @@ RUN npm run build
|
|||
FROM base AS runner
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Create non-root user
|
||||
RUN groupadd -r appgroup && useradd -r -g appgroup appuser
|
||||
# Create non-root user with specific UID/GID
|
||||
RUN groupadd -r appgroup --gid 1000 && useradd -r -g appgroup --uid 1000 appuser
|
||||
|
||||
# Copy production node_modules
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
|
|
|
|||
Loading…
Reference in New Issue