8 Commits
Author SHA1 Message Date
nmemmert bc4dec65b3 Fix cron daemon startup in Docker container
- Install su-exec for user switching
- Modify startup script to run cron as root and app as nextjs user
- Remove USER directive to allow proper service management
- Cron daemon now starts successfully alongside Next.js app
2025-10-22 14:38:03 -04:00
nmemmert 5131740727 Fix Docker cron permissions
- Move cron file and startup script creation before USER directive
- Set proper ownership for cron files and startup script
- Fix permission denied errors in Docker build
2025-10-22 14:33:22 -04:00
nmemmert 6b0713612d Implement scheduled email reminders
- Add cron service to Docker container for automated email sending
- Create /api/send-scheduled-emails endpoint for cron job calls
- Modify prayer submission to store user reminder preferences instead of sending immediate emails
- Update Firestore rules to allow server-side API access for scheduled emails
- Add userId to prayers for proper user association
- Cron runs every 5 minutes to check and send scheduled reminders
2025-10-22 14:20:21 -04:00
nmemmert bd6e1eea7c Fix Node.js version requirement
- Update Dockerfile to use Node.js 20 (required for Next.js 16)
- Next.js 16 requires Node.js >=20.9.0, was using 18.20.8
2025-10-22 13:18:26 -04:00
nmemmert 08ca9ed7da Fix Docker build issues
- Fix ENV format warnings in Dockerfile
- Set NODE_ENV=production during build
- Enable PWA plugin for all environments to ensure consistent builds
- Add debugging for build failures
2025-10-22 13:10:27 -04:00
nmemmert aa2c28d444 Simplify Dockerfile build process
- Remove problematic multi-stage deps optimization
- Install all dependencies directly in builder stage
- Ensure reliable builds by avoiding dependency conflicts
2025-10-22 13:05:49 -04:00
nmemmert c054fbc404 Fix Dockerfile build dependencies
- Install all dependencies (including dev dependencies) in builder stage
- Ensure TypeScript, Tailwind, and other build tools are available during build
2025-10-22 13:02:44 -04:00
nmemmert fba1097380 Add Docker support and containerization
- Add Dockerfile for Next.js application
- Configure standalone output for Docker
- Add .dockerignore file
- Add docker-compose.yml for easy deployment
- Update next.config.ts for Docker compatibility
2025-10-22 12:42:41 -04:00