Skip to content

Commit

Permalink
Cache npm ci in frontend dev docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKallekleiv committed Apr 8, 2024
1 parent de630c7 commit 36e814a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend-dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ FROM node:${NODE_TAG}

USER node

COPY --chown=node:node . /usr/src/app

WORKDIR /usr/src/app/frontend

RUN npm config set fetch-retry-mintimeout 100000
RUN npm config set fetch-retry-maxtimeout 600000

COPY --chown=node:node ./frontend/package*.json ./

RUN npm ci --ignore-scripts

COPY --chown=node:node ./frontend/ ./

CMD ["npm", "run", "dev"]

0 comments on commit 36e814a

Please sign in to comment.