Dockerizacion
This commit is contained in:
parent
020b29e78a
commit
3c3c0ddc2a
|
|
@ -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;"]
|
||||
11
dockerfile
11
dockerfile
|
|
@ -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;"]
|
||||
Loading…
Reference in New Issue