From 760676d1700c7362d01867c24a5ee219e8f7651f Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 1 Mar 2025 02:49:55 -0600 Subject: [PATCH] Update Dockerfile to serve templates with CORS and directory listing --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 48ad575..f076380 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,9 @@ RUN npm install -g serve # Copiar la carpeta templates COPY ./templates ./public/templates -COPY ./templates/index.html ./public/ # Exponer el puerto EXPOSE 3000 -# Servir los archivos estáticos -CMD ["serve", "-s", "public", "-l", "3000"] \ No newline at end of file +# Servir los archivos estáticos con listado de directorios +CMD ["serve", "--no-clipboard", "--cors", "-l", "3000", "public/templates"] \ No newline at end of file