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:
parent
84536d0508
commit
748dc6bdb5
|
@ -12,8 +12,7 @@ RUN sculpin generate --env prod
|
||||||
|
|
||||||
FROM node:14 AS assets
|
FROM node:14 AS assets
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json .
|
COPY package*.json ./
|
||||||
COPY package-lock.json .
|
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run production
|
RUN npm run production
|
||||||
|
|
Loading…
Reference in a new issue