Ensure website content displays correctly when running in production mode

Fixes a static asset serving issue by updating the Dockerfile to copy public assets.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/1a628c74-3aad-4182-a42f-aeae036e6dcf.jpg
This commit is contained in:
michaelschal committed 2025-07-09 22:45:33 +00:00
1 parent 4c89a7e2e5
commit 1ee5972c47
3 files changed
+102

No files matched your search

+8
View File
@@ -231,6 +231,14 @@ Preferred communication style: Simple, everyday language.
- ✅ Created comprehensive Docker test guide with troubleshooting steps
- ✅ Production-ready solution that works with Node.js 18 in Docker containers
### Docker Production Deployment Fix (January 9, 2025)
- ✅ Fixed "relation 'users' does not exist" error by adding drizzle-kit to production dependencies
- ✅ Added automatic database migration in docker-entrypoint-simple.sh script
- ✅ Resolved "Could not find build directory /app/public" by copying assets to correct location
- ✅ Updated Dockerfile to copy dist/public to /app/public for serveStatic compatibility
- ✅ Database tables now created automatically on first container startup
- ✅ Complete Docker deployment package ready with all fixes applied
### Production Deployment System (January 9, 2025)
- ✅ Multi-stage Dockerfile optimized for production with security hardening
- ✅ Production-specific Docker Compose configuration with resource limits