Skip to content

Commit

Permalink
fix: let npm create a directory by setting the HOME env to /app
Browse files Browse the repository at this point in the history
  • Loading branch information
kespinola committed Oct 6, 2023
1 parent addf536 commit 0d6f92c
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
@@ -1,6 +1,7 @@
FROM node:20-alpine AS base
WORKDIR /app
RUN addgroup -g 10000 uploader && adduser -u 10000 -G uploader -s /bin/sh -D uploader
ENV HOME=/app
RUN chown -R uploader:uploader /app
USER uploader
COPY --chown=uploader:uploader package*.json ./
Expand Down

0 comments on commit 0d6f92c

Please sign in to comment.