mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 08:25:36 +00:00
Reorder debug dockerfile to faster livepushes
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
bb549a445b
commit
9fdd1d7427
@ -38,9 +38,6 @@ RUN apt-get update && apt-get install ca-certificates \
|
||||
iptables libnss-mdns nodejs rsync git python make curl g++ \
|
||||
kmod vim
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
|
||||
# We first ensure that every architecture has an npm version
|
||||
# which can do an npm ci, then we perform the ci using this
|
||||
# temporary version
|
||||
@ -48,8 +45,10 @@ RUN curl -LOJ https://www.npmjs.com/install.sh && \
|
||||
# This is required to avoid a bug in uid-number
|
||||
# https://github.com/npm/uid-number/issues/7
|
||||
npm config set unsafe-perm true && \
|
||||
npm_install="${NPM_VERSION}" npm_config_prefix=/tmp sh ./install.sh && \
|
||||
JOBS=MAX /tmp/bin/npm ci --no-optional --unsafe-perm
|
||||
npm_install="${NPM_VERSION}" npm_config_prefix=/tmp sh ./install.sh
|
||||
|
||||
COPY package*.json ./
|
||||
RUN JOBS=MAX /tmp/bin/npm ci --no-optional --unsafe-perm
|
||||
|
||||
COPY src src/
|
||||
COPY typings typings/
|
||||
|
Loading…
x
Reference in New Issue
Block a user