How duskagk/docker-react-app works
Main Components
A. Development Environment:
• Create React App Development Server
• Hot Module Replacement (HMR)
• Development Docker Container (from Dockerfile.dev)
B. Production Environment:
• Production Build Output
• Production Docker Container (from Dockerfile)
• Static File Server
C. Application Architecture:
• React Components Layer
• Asset Pipeline
• Testing Infrastructure
[Development] | [Application Core] | [Production]
Important Relationships
• Development server → Source code (watching)
• Source code → Build process
• Build process → Production artifacts
• Test runner → Source code
• Docker containers → Application code
Additional Details
• Port mappings (3000 for dev)
• Volume mounts for development
• npm scripts connections
• Webpack build pipeline
• Environment-specific configurations