Skip to content

Commit

Permalink
fix: avoid scripts in npm prune step in dockerfile (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp authored Oct 23, 2023
1 parent f8b3f15 commit 5efc399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN sed -i.temp '/Pulumi\.ts/d' package.json

RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build:server
RUN NODE_OPTIONS="--max-old-space-size=4096" VERSION_NUMBER=$version_number npm run build:front
RUN npm prune --production
RUN npm prune --production --no-scripts

FROM node:18.8-alpine
WORKDIR /app
Expand Down

0 comments on commit 5efc399

Please sign in to comment.