mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-29 18:18:52 +00:00
Merge pull request #985 from balena-io/fix-supervisor-image-size
Fix regression where node_modules stayed in resulting image
This commit is contained in:
commit
ef6cf9147b
@ -86,9 +86,9 @@ COPY package.json package-lock.json /usr/src/app/
|
||||
|
||||
# Install only the production modules that have C extensions
|
||||
RUN (if [ $ARCH = "i386-nlp" ]; then \
|
||||
JOBS=MAX npm install --no-optional --unsafe-perm; \
|
||||
JOBS=MAX npm install --no-optional --unsafe-perm --production; \
|
||||
else \
|
||||
JOBS=MAX npm ci --no-optional --unsafe-perm; \
|
||||
JOBS=MAX npm ci --no-optional --unsafe-perm --production; \
|
||||
fi) && npm dedupe
|
||||
|
||||
# Remove various uneeded filetypes in order to reduce space
|
||||
|
Loading…
Reference in New Issue
Block a user