WH-1848: fix up cache @ Closes #1848

This commit is contained in:
Josh Siegel 2022-11-02 20:21:08 +00:00 committed by jumpsiegel
parent 8a4a49983e
commit de02c20fa5
1 changed files with 6 additions and 2 deletions

View File

@ -15,8 +15,12 @@ WORKDIR /clients/js
# copy package.json & package-lock.json by themselves to create a cache layer
COPY clients/js/package.json clients/js/package-lock.json ./
# 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 clients/js ./
# build CLI