Dockerizacion

This commit is contained in:
Tatiana Villa 2026-03-28 18:54:15 +00:00
parent 020b29e78a
commit 3c3c0ddc2a
3 changed files with 13 additions and 11 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
# Usamos la imagen oficial de Nginx, la versión estable y ligera
FROM nginx:stable-alpine
# Borramos la web por defecto de Nginx
RUN rm -rf /usr/share/nginx/html/*
# Copiamos tus archivos (html, js, css) a la carpeta de Nginx
COPY . /usr/share/nginx/html/
# Exponemos el puerto 80
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0
docker
View File

View File

@ -1,11 +0,0 @@
# Usar Nginx como servidor web
FROM nginx:alpine
# Copiar los archivos de tu web al contenedor
COPY . /usr/share/nginx/html/
# Exponer el puerto 80
EXPOSE 80
# Comando por defecto
CMD ["nginx", "-g", "daemon off;"]