Skip to content

Commit 760676d

Browse files
committed
Update Dockerfile to serve templates with CORS and directory listing
1 parent 9d9bd46 commit 760676d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ RUN npm install -g serve
77

88
# Copiar la carpeta templates
99
COPY ./templates ./public/templates
10-
COPY ./templates/index.html ./public/
1110

1211
# Exponer el puerto
1312
EXPOSE 3000
1413

15-
# Servir los archivos estáticos
16-
CMD ["serve", "-s", "public", "-l", "3000"]
14+
# Servir los archivos estáticos con listado de directorios
15+
CMD ["serve", "--no-clipboard", "--cors", "-l", "3000", "public/templates"]

0 commit comments

Comments
 (0)