From 72fa43956948f3357f71d89cb8aa41466a31ca22 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Sat, 15 Aug 2020 13:43:14 -0400 Subject: [PATCH] Dockerfile now uses angular CLI directly for building process --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ea8cb99..75b22d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 #--------------#