Skip to content

Commit cb27626

Browse files
committed
front: use npm install --save=false in dev Dockerfile
We don't want to mutate package-lock.json on container startup. Leave it up to the user to run `npm install` explicitly when dependencies are updated, just like our other generated files. Helps with behavioral differences between npm v10 and v11. `npm clean-install` would work too, but nukes node_modules/ which makes it more expensive. Signed-off-by: Simon Ser <[email protected]>
1 parent 131b433 commit cb27626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front/docker/Dockerfile.devel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ ENV NODE_OPTIONS="--max_old_space_size=4096"
2121
# Start the app
2222
COPY docker/dev-entrypoint.sh /
2323
ENTRYPOINT ["/dev-entrypoint.sh"]
24-
CMD ["sh", "-c", "id && npm install && (npm run build-ui & npm run start-container)"]
24+
CMD ["sh", "-c", "id && npm install --save=false && (npm run build-ui & npm run start-container)"]

0 commit comments

Comments
 (0)