Skip to content

Commit

Permalink
intégration continue : modification du port d'écoute en 8080
Browse files Browse the repository at this point in the history
  • Loading branch information
jvk88511334 committed Jul 2, 2024
1 parent 9d11822 commit 0071cf8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ FROM nginx:1.21.0-alpine
# Copiez les fichiers construits de l'étape précédente
COPY --from=build /app/build /usr/share/nginx/html

# Exposez le port 80 pour accéder à l'application
EXPOSE 80
# Copiez un fichier de configuration Nginx personnalisé
COPY nginx.conf /etc/nginx/conf.d/default.conf

# Exposez le port 8080 pour accéder à l'application
EXPOSE 8080

# Démarrez Nginx lorsque le conteneur est lancé
CMD ["nginx", "-g", "daemon off;"]
10 changes: 10 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
listen 8080;
server_name localhost;
root /usr/share/nginx/html;
index index.html;

location / {
try_files $uri $uri/ /index.html;
}
}

0 comments on commit 0071cf8

Please sign in to comment.