Skip to content

Commit

Permalink
cache npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Jul 18, 2023
1 parent 3b9b00e commit 3f123ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ COPY package.json package-lock.json .babelrc /opt/warehouse/src/
# Installing npm dependencies is done as a distinct step and *prior* to copying
# over our static files so that, you guessed it, we don't invalidate the cache
# of installed dependencies just because files have been modified.
RUN npm ci
RUN --mount=type=cache,target=/root/.npm,sharing=locked \
npm ci



Expand Down

0 comments on commit 3f123ee

Please sign in to comment.