Skip to content
Extraits de code Groupes Projets
Valider 168392a9 rédigé par Guillaume Schurck's avatar Guillaume Schurck
Parcourir les fichiers

add frontend docker

parent eb7ca77e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -41,4 +41,6 @@ services:
environment:
- VITE_BACKEND_URL=http://sg-backend:8000
ports:
- "5000:5000"
\ No newline at end of file
- "4173:4173"
depends_on:
- sg-backend
\ No newline at end of file
FROM node
COPY ./* .
WORKDIR /app
COPY . .
RUN npm install
RUN npm run dev
RUN npm run build
EXPOSE 5000
EXPOSE 4173
ENV HOST=0.0.0.0
CMD [ "npm", "start" ]
\ No newline at end of file
CMD ["npm","run", "preview", "--","--host", "0.0.0.0", "--port", "4173"]
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter