Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
test docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
samyw10 committed Apr 1, 2024
1 parent 612e961 commit 4f347f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ RUN npm install
# Copier le reste des fichiers du projet dans le conteneur
COPY . .

# Créer le fichier .env avec les variables d'environnement nécessaires
RUN echo "VITE_BACKEND_URL=http://10.196.10.69:4400/\nVITE_AZURE_BACKEND_URL=http://10.196.10.69:4400" > .env

# Exécuter le script de build du projet
RUN npm run build

Expand Down
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.8'

services:
frontend:
build:
context: .
image: evaluetonsavoir/ets-pfe042-evaluetonsavoir-frontend:latest
ports:
- "5173:80"
environment:
- VITE_BACKEND_URL=http://10.196.10.69:3000
- VITE_AZURE_BACKEND_URL=http://10.196.10.69:4400

0 comments on commit 4f347f8

Please sign in to comment.