ci: mount package lock for installs

This commit is contained in:
Pierre Martin 2021-01-09 11:51:31 +01:00
parent 87ef96d1af
commit 4883403f77

View File

@ -1,9 +1,10 @@
FROM node:15.1.0 as builder FROM node:15.1.0 as builder
WORKDIR /project WORKDIR /project
COPY package.json /project/package.json COPY package-lock.json /project/package-lock.json
RUN npm ci RUN npm ci
# use separate layer for more efficient caching # use separate layer for more efficient caching
COPY package.json /project/package.json
COPY snowpack.config.js /project/snowpack.config.js COPY snowpack.config.js /project/snowpack.config.js
COPY src /project/src COPY src /project/src