shreyank: Dockerize mifos web-app

This commit is contained in:
Shreyank Byadagi
2021-07-01 18:48:19 +05:30
parent f51d8e86f9
commit 47bf9db86e
3 changed files with 25 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM node:12-alpine as builder
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package.json /usr/src/app/package.json
RUN npm install -g @angular/cli@9.1.12
RUN npm install
COPY . .
FROM nginx:1.19.3
COPY --from=builder /usr/src/app/dist/web-app /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]