mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
Add meta.json and update server infrastructure for template management
This commit is contained in:
22
app/Dockerfile
Normal file
22
app/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM node:20.9-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Crear la estructura de directorios
|
||||
RUN mkdir -p public/templates
|
||||
|
||||
# Copiar package.json y server.js
|
||||
COPY ./app/package.json ./
|
||||
COPY ./app/server.js ./
|
||||
|
||||
# Copiar la carpeta templates
|
||||
COPY ./templates ./public/templates/
|
||||
|
||||
# Instalar dependencias
|
||||
RUN npm install express cors
|
||||
|
||||
# Exponer el puerto
|
||||
EXPOSE 4000
|
||||
|
||||
# Iniciar el servidor
|
||||
CMD ["node", "server.js"]
|
||||
Reference in New Issue
Block a user