aswi2021codebakers-gitlab/Dockerfile @ 533869de
1 | 6d03e22c | hlavja | FROM node:15.14.0-alpine3.10 AS angularApp |
---|---|---|---|
2 | dc564f3a | hlavja | 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 |