Use intermediate build layers

This commit is contained in:
Tobias Eidelpes 2021-01-19 15:10:32 +01:00
parent 636bd1bae6
commit 7a2e4b8a73

View File

@ -2,11 +2,17 @@
FROM node:alpine AS build-image
COPY package.json package-lock.json /app/
WORKDIR /app
COPY . .
RUN npm ci
RUN npm ci && npm run build
COPY angular.json karma.conf.js protractor.conf.js README.md tsconfig.app.json tsconfig.json tslint.json /app/
COPY src /app/src
RUN npm run build
# Stage 2