You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Collaborateur_Epa_Front/Dockerfile

21 lines
425 B

# Stage 1 : Building the application
FROM node:16-alpine3.15 as build-step
RUN mkdir -p /app
WORKDIR /app
COPY . /app
RUN npm install
RUN npm run build --prod
# Stage 2 : Deploying the application on Nginx
FROM nginx:1.23.1-alpine
RUN rm -rf /usr/share/nginx/html/* && rm -rf /etc/nginx/nginx.conf
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY --from=build-step /app/dist/Collaborateur-Epa-Front /usr/share/nginx/html