mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
16 lines
304 B
Docker
16 lines
304 B
Docker
FROM node:20.9-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Instalar serve globalmente
|
|
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"] |