Skip to content

Commit

Permalink
Fix permission issue on npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
allamasln committed May 30, 2022
1 parent 990471e commit 6cba3ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ FROM node:16.15.0-alpine3.15
RUN addgroup app && adduser -S -G app app
USER app

WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
WORKDIR /app
COPY --chown=app:node package*.json ./
RUN npm install
COPY --chown=app:node . .

EXPOSE 3000

Expand Down

0 comments on commit 6cba3ce

Please sign in to comment.