Skip to content

Commit

Permalink
fix: Prevent docker build from failing if .npm folder is missing (#924)
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Nayak <akash19nayak@gmail.com>
  • Loading branch information
Akash-Nayak authored Dec 7, 2022
1 parent 7454a32 commit 9df7e75
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN {{ .PackageManager }} run build
{{- end}}
{{- if eq .PackageManager "npm" }}
USER root
RUN mkdir -p /opt/app-root/src/.npm
RUN chown -R 1001:0 /opt/app-root/src/.npm
RUN chmod -R 775 /opt/app-root/src/.npm
USER 1001
Expand Down

0 comments on commit 9df7e75

Please sign in to comment.