mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-07 20:10:03 +03:00
Dockerfile now uses angular CLI directly for building process
This commit is contained in:
@@ -3,13 +3,15 @@ FROM alpine:3.12 as frontend
|
|||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
npm
|
npm
|
||||||
|
|
||||||
|
RUN npm install -g @angular/cli
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY [ "package.json", "package-lock.json", "/build/" ]
|
COPY [ "package.json", "package-lock.json", "/build/" ]
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
COPY [ "angular.json", "tsconfig.json", "/build/" ]
|
COPY [ "angular.json", "tsconfig.json", "/build/" ]
|
||||||
COPY [ "src/", "/build/src/" ]
|
COPY [ "src/", "/build/src/" ]
|
||||||
RUN npm run ng build --prod
|
RUN ng build --prod
|
||||||
|
|
||||||
#--------------#
|
#--------------#
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user