WH-1848: fix up cache @ Closes #1848
This commit is contained in:
parent
8a4a49983e
commit
de02c20fa5
|
@ -15,8 +15,12 @@ WORKDIR /clients/js
|
||||||
# copy package.json & package-lock.json by themselves to create a cache layer
|
# copy package.json & package-lock.json by themselves to create a cache layer
|
||||||
COPY clients/js/package.json clients/js/package-lock.json ./
|
COPY clients/js/package.json clients/js/package-lock.json ./
|
||||||
# mount the buildkit cache on npm's cache dir, install dependencies
|
# mount the buildkit cache on npm's cache dir, install dependencies
|
||||||
RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
|
||||||
npm ci
|
# Commenting out npm cache due to heisenbug with github build machines
|
||||||
|
# RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm
|
||||||
|
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
# copy the rest of the source files, as a layer on top of the deps
|
# copy the rest of the source files, as a layer on top of the deps
|
||||||
COPY clients/js ./
|
COPY clients/js ./
|
||||||
# build CLI
|
# build CLI
|
||||||
|
|
Loading…
Reference in New Issue