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.
This commit is contained in:
Oliver Davies 2021-11-11 07:12:58 +00:00
parent 84536d0508
commit 748dc6bdb5

View file

@ -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