aswi2021codebakers-gitlab/Dockerfile @ 6ea14224
1 |
FROM node:15.14.0-alpine3.10 AS angularApp |
---|---|
2 |
WORKDIR /usr/src/app |
3 |
COPY package.json package-lock.json ./ |
4 |
RUN npm install |
5 |
COPY . . |
6 |
RUN npm run build
|
7 |
|
8 |
|
9 |
FROM nginx:1.19.6-alpine |
10 |
COPY nginx.conf /etc/nginx/nginx.conf |
11 |
COPY --from=angularApp /usr/src/app/dist/SensLog /usr/share/nginx/html |