From 9fdd1d7427b77f0d38820c0f2150b63f8f7c6312 Mon Sep 17 00:00:00 2001 From: Cameron Diver Date: Fri, 5 Jul 2019 11:32:59 +0100 Subject: [PATCH] Reorder debug dockerfile to faster livepushes Change-type: patch Signed-off-by: Cameron Diver --- Dockerfile.debug | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile.debug b/Dockerfile.debug index 9a6f7913..1e4111bd 100644 --- a/Dockerfile.debug +++ b/Dockerfile.debug @@ -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/