Commit Graph

5 Commits

Author SHA1 Message Date
Arnaud 0481fded33 Fix Docker build: add VAPID_PRIVATE_KEY and create .env.local during build
- Add VAPID_PRIVATE_KEY as a build argument with secure defaults from .env.local
- Create apps/web/.env.local during build with all required environment variables
- This ensures Next.js build has access to necessary config values at build time
- Docker build now completes successfully with proper environment configuration
2026-07-01 11:42:33 +02:00
Arnaud 5ab2acc711 Fix TypeScript errors blocking Docker build
- Fix Authentik button type casting issue in login page
  * Use exported signIn instead of authClient type assertion
  * Add proper error handling for OAuth calls

- Fix image MIME type handling in import-photo.ts
  * Convert base64 to data URL format for AI SDK compatibility

- Fix type annotations in auth/server.ts changeEmail handler
  * Add explicit type annotation for destructured parameters

These TypeScript errors were preventing 'pnpm build' from completing
during Docker image build process.
2026-07-01 11:29:41 +02:00
Arnaud 163e1c6137 Add Portainer stack.env support for environment variable management
- Add docker/stack.env template for Portainer deployment
- Update Dockerfile to accept build args for Next.js environment variables
- Update docker-compose.deploy.yml to pass build args from environment
- Add comprehensive Portainer deployment guide in DOCKER_DEPLOYMENT.md
- Document environment variable setup for both CLI and Portainer deployments
2026-07-01 11:25:42 +02:00
Arnaud 9e7b83a12c Fix Docker build issues
- Add git to build dependencies (required by some npm packages)
- Add build-time environment variables (NEXT_PUBLIC_VAPID_PUBLIC_KEY, BETTER_AUTH_SECRET, BETTER_AUTH_URL)
- Add error output capture (2>&1) to expose build errors
- Ensure all dependencies are available during build phase
2026-07-01 11:22:07 +02:00
Arnaud b2ac623836 Add production Docker deployment configuration
- Add multi-stage Dockerfile for Next.js standalone build
- Add docker-compose.deploy.yml for production deployment
- Add entrypoint.sh for database migration and startup
- Add .dockerignore for efficient Docker builds
- Add docker/.env.production with all required env vars
- Add Caddyfile.prod with security headers and optimizations
- Update next.config.ts with output: standalone for Docker
- Add DOCKER_DEPLOYMENT.md with comprehensive deployment guide
2026-07-01 11:13:30 +02:00