Téléverser les fichiers vers "/"
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
# Utilise l'image légère d'Nginx
|
||||
FROM nginx:alpine
|
||||
|
||||
# Supprime la config par défaut (optionnel mais propre)
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
# Copie ton site dans le dossier public d'Nginx
|
||||
COPY . /usr/share/nginx/html
|
||||
|
||||
# Expose le port 80
|
||||
EXPOSE 80
|
||||
|
||||
# Démarre nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
|
||||
# docker build -t mon-site .
|
||||
# docker run -d -p 8080:80 Portfolio
|
||||
# http.localhost:8080
|
||||
Reference in New Issue
Block a user