Commit 2f721b29 authored by David Burke's avatar David Burke

cache node modules

parent b9bbd3ca
Pipeline #37732847 failed with stage
in 5 minutes and 49 seconds
......@@ -4,6 +4,7 @@ variables:
DOCKER_DRIVER: overlay2
COMPOSE: docker-compose -f docker-compose.yml -f docker-compose.ci.yml
CHROME_BIN: chromium-browser
npm_config_cache: $CI_PROJECT_DIR/.npm
stages:
- test
......@@ -23,7 +24,7 @@ build-web-assets:
stage: test
cache:
paths:
- node_modules/
- .npm/
script:
- npm ci
- node --max_old_space_size=6000 node_modules/@angular/cli/bin/ng build --prod --build-optimizer --progress false --source-map
......@@ -35,7 +36,7 @@ build-ext-assets:
stage: test
cache:
paths:
- node_modules/
- .npm/
script:
- npm ci
- ./set_version.sh
......@@ -130,7 +131,7 @@ pages:
stage: pages
cache:
paths:
- node_modules/
- .npm/
script:
- npm ci
- npm run build-storybook -o public
......
......@@ -4,11 +4,11 @@ RUN mkdir /dist
WORKDIR /dist
COPY package.json /dist/package.json
COPY yarn.lock /dist/yarn.lock
RUN yarn install --frozen-lockfile && yarn cache clean
COPY package-lock.json /dist/package-lock.json
RUN npm i
VOLUME /dist/node_modules
ENV PATH /dist/node_modules/.bin:$PATH
COPY . /dist/
ENTRYPOINT ["yarn", "run"]
ENTRYPOINT ["npm", "run"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment