From 00107c5ebb351a61ea1a1ddc27c24fca02643a35 Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Tue, 24 Mar 2020 17:37:55 +0000 Subject: [PATCH] COPY package-lock.json before package.json --- Dockerfile-dev | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile-dev b/Dockerfile-dev index d6f02d1..d3cf60a 100755 --- a/Dockerfile-dev +++ b/Dockerfile-dev @@ -9,10 +9,11 @@ COPY /src/ /app/src/ # add `/app/node_modules/.bin` to $PATH ENV PATH /app/node_modules/.bin:$PATH -# install and cache app dependencies -COPY package.json /app/package.json # make sure the packages are the same COPY package-lock.json /app/package.json + +# install and cache app dependencies +COPY package.json /app/package.json RUN npm install # start app