parent
15f607122f
commit
5df1f2f23b
@ -1,9 +1,22 @@ |
||||
#stage 1 |
||||
FROM node:latest as node |
||||
# Stage 1 |
||||
|
||||
|
||||
FROM node:16-alpine3.14 as build-step |
||||
|
||||
RUN mkdir -p /app |
||||
|
||||
WORKDIR /app |
||||
COPY . . |
||||
|
||||
COPY package.json /app |
||||
|
||||
RUN npm install |
||||
|
||||
COPY . /app |
||||
|
||||
RUN npm run build --prod |
||||
#stage 2 |
||||
FROM nginx:alpine |
||||
COPY --from=node /app/dist/demo-app /usr/share/nginx/html |
||||
|
||||
# Stage 2 |
||||
|
||||
FROM nginx:1.17.1-alpine |
||||
|
||||
COPY --from=build-step /app/dist/Collaborateur-Epa-Front /usr/share/nginx/html |
||||
|
Loading…
Reference in new issue