- Add --no-install-recommends flag to apt-get to reduce image size
- Add ca-certificates package for secure HTTPS connections
- Clean pip cache after installing dependencies (rm -rf /root/.cache/pip)
- Replace Flask development server with Gunicorn for production deployment
- Configure Gunicorn with 4 workers, 120s timeout, and access/error logging
- Binding to 0.0.0.0:5001 for container networking