This commit is contained in:
2026-08-21 08:54:18 -03:00
2 changed files with 19 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# Usamos la imagen ligera de Nginx
FROM nginx:alpine
# Copiamos todos tus archivos web a la carpeta que Nginx sirve por defecto
COPY . /usr/share/nginx/html
# Exponemos el puerto 80 (el estándar de web)
EXPOSE 80
+11
View File
@@ -0,0 +1,11 @@
version: '3.8'
services:
web:
# Le decimos que construya la imagen usando el Dockerfile que está en el mismo directorio
build: .
# Mapeamos el puerto 80 del contenedor a un puerto de tu VM (ej. 8080)
ports:
- "8081:80"
# Para que el contenedor se reinicie solo si se cae
restart: unless-stopped