mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
Remove app directory and simplify project structure
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user