Skip to content

Commit

Permalink
container use regular user
Browse files Browse the repository at this point in the history
Signed-off-by: Yaacov Zamir <kobi.zamir@gmail.com>
  • Loading branch information
yaacov committed Jan 24, 2024
1 parent 6652386 commit 614b475
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ COPY package*.json ./
# Install dependencies
USER 0
RUN npm install
RUN chown -R 1001:0 "/opt/app-root/src/.npm"

# Copy the rest of your app's source code
COPY . .
Expand Down

0 comments on commit 614b475

Please sign in to comment.