From 748dc6bdb5e45ef75ca5d8320ec53ffd35db1cf3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 11 Nov 2021 07:12:58 +0000 Subject: [PATCH] refactor: combine COPY commands Combine two `COPY` commands to add the package.json and package-lock.json files at the same time - the same way that is being used for composer.json and composer.lock files earlier in the file. --- tools/docker/images/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/docker/images/Dockerfile b/tools/docker/images/Dockerfile index 86f51795..e4688e97 100644 --- a/tools/docker/images/Dockerfile +++ b/tools/docker/images/Dockerfile @@ -12,8 +12,7 @@ RUN sculpin generate --env prod FROM node:14 AS assets WORKDIR /app -COPY package.json . -COPY package-lock.json . +COPY package*.json ./ RUN npm ci COPY . . RUN npm run production