Dockerfile now uses angular CLI directly for building process

This commit is contained in:
Isaac Abadi
2020-08-15 13:43:14 -04:00
parent 33b1affa73
commit 72fa439569

View File

@@ -3,13 +3,15 @@ FROM alpine:3.12 as frontend
RUN apk add --no-cache \
npm
RUN npm install -g @angular/cli
WORKDIR /build
COPY [ "package.json", "package-lock.json", "/build/" ]
RUN npm install
COPY [ "angular.json", "tsconfig.json", "/build/" ]
COPY [ "src/", "/build/src/" ]
RUN npm run ng build --prod
RUN ng build --prod
#--------------#