mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Merge pull request #2 from louis-antoine-etsmtl/creation-image
remove bad file
This commit is contained in:
commit
8fe2f2ad35
1 changed files with 0 additions and 27 deletions
27
Dockerfile
27
Dockerfile
|
|
@ -1,27 +0,0 @@
|
|||
# Frontend build stage
|
||||
FROM node:18 AS frontend_build
|
||||
WORKDIR /usr/src/app/client
|
||||
COPY ./client/package*.json ./
|
||||
RUN npm install
|
||||
COPY ./client .
|
||||
RUN npm run build
|
||||
|
||||
# Backend build stage
|
||||
FROM node:18 AS backend_build
|
||||
WORKDIR /usr/src/app/serveur
|
||||
COPY ./serveur/package*.json ./
|
||||
RUN npm install
|
||||
COPY ./serveur .
|
||||
|
||||
# Nginx build stage
|
||||
FROM nginx AS nginx_build
|
||||
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Final stage
|
||||
FROM node:18
|
||||
WORKDIR /app
|
||||
COPY --from=frontend_build /usr/src/app/client/build ./client
|
||||
COPY --from=backend_build /usr/src/app/serveur ./
|
||||
COPY --from=nginx_build /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Loading…
Reference in a new issue