mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 00:23:57 +00:00
Fix regression where node_modules stayed in resulting image
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
9583f1da44
commit
99c08c807b
@ -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…
x
Reference in New Issue
Block a user