Merge pull request #1381 from kalsmic/fix-docker-build

fix: docker build failure
This commit is contained in:
Avik Ganguly
2022-03-28 20:11:27 +05:30
committed by GitHub
2 changed files with 15 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
node_modules
npm-debug.log
Dockerfile*
docker-compose*
.dockerignore
.git
.gitignore
README.md
LICENSE
.vscode
dist
.github
+3 -1
View File
@@ -8,12 +8,14 @@ COPY package.json /usr/src/app/package.json
RUN npm install -g @angular/cli@9.1.12
CMD ng build
RUN npm install
COPY . .
RUN ng build --prod
FROM nginx:1.19.3
COPY --from=builder /usr/src/app/dist/web-app /usr/share/nginx/html