Skip to content

Commit

Permalink
Fix addgroup flag
Browse files Browse the repository at this point in the history
  • Loading branch information
smrtrfszm committed Oct 9, 2023
1 parent 94b310e commit 758e4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app/dist /app/dist
EXPOSE 3000

RUN addgroup -S app && \
adduser -S -D -H --shell /bin/false -G app app && \
RUN addgroup --system app && \
adduser --system -D -H --shell /bin/false -G app app && \
chown -R app:app /app
USER app
CMD [ "node", "/app/dist/server.js" ]

0 comments on commit 758e4a9

Please sign in to comment.