build: enable production build for Dokploy deploy

- build script usa --webpack (Next 16 default es Turbopack, incompatible con la config webpack de @remotion)
- tsconfig excluye remotion/ (subproyecto autocontenido con su propio tsconfig; rompía el type-check con un import faltante)
- Dockerfile de producción (build + next start) y .dockerignore que deja fuera projects/ y data/ (llegan por volúmenes)
- CLAUDE.md actualizado al estado real (SQLite, webpack, Ark, Remotion integrado)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Carlos Narro
2026-08-11 04:37:01 +02:00
parent 3aaffd7358
commit e93adc8d69
5 changed files with 77 additions and 2 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM node:22-slim
# Toolchain para módulos nativos (better-sqlite3) y clonado de deps
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 make g++ git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm install --production=false
COPY . .
RUN npm run build
ENV PORT=3000
ENV NODE_ENV=production
EXPOSE 3000
# Los datos persistentes (SQLite + imágenes/vídeos) llegan por volúmenes
# montados en /app/data y /app/projects (ver mounts de Dokploy).
CMD ["npm", "start"]