copy cached node_modules;

This commit is contained in:
Marco Zeisler 2021-05-12 00:55:39 +02:00
parent 2f0d70081f
commit db72e8b496
3 changed files with 6 additions and 1 deletions

View File

@ -132,6 +132,11 @@ docker-build-fe:
script: script:
- docker-compose build waecm_g4_fe - docker-compose build waecm_g4_fe
- docker save -o waecm_g4_fe ${DOCKER_USER}/${ASSIGNMENT}-fe - docker save -o waecm_g4_fe ${DOCKER_USER}/${ASSIGNMENT}-fe
cache:
key: $CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
paths:
- frontend/node_modules/
policy: pull
extends: extends:
- .docker-build - .docker-build
- .docker-setup - .docker-setup

View File

@ -1,2 +1 @@
dist dist
node_modules

View File

@ -5,6 +5,7 @@ FROM node:alpine
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN ls -l; ls -l ./node_modules
RUN npm install && npm install chokidar --save RUN npm install && npm install chokidar --save