19 lines
397 B
Docker
19 lines
397 B
Docker
# 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 |