Phase 5: Docker e Deploy Config

- Dockerfile multi-stage:
  * Build com pnpm + Prisma generate
  * Production com Node.js 22 alpine
  * Non-root user (nextjs:nodejs)
  * Standalone output

- next.config.ts: output standalone
- .dockerignore: excludes node_modules, .env, .next, etc

Ready para deploy EasyPanel com:
- Port 3000
- ENV: DATABASE_URL, NODE_ENV=production
- Build: Nixpacks ou Dockerfile

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-13 18:02:14 +00:00
parent 5c34372d42
commit 837e72ec40
3 changed files with 102 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
output: 'standalone',
};
export default nextConfig;