Skip to content

Commit

Permalink
fix: improve docker permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian committed Mar 5, 2023
1 parent ea1c142 commit d84f7c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM node:18-slim

WORKDIR /usr/share/app
COPY . .
WORKDIR /app
RUN useradd -ms /bin/sh admin
RUN chown -R admin .
COPY --chown=admin . .
USER admin

ENV NODE_ENV "production"
ENV PORT 8080
Expand Down

0 comments on commit d84f7c4

Please sign in to comment.