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:
24
Dockerfile
Normal file
24
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user