delete
Resolved 💬 1 comment Opened Nov 23, 2025 by pyrato Closed Nov 23, 2025
Summary
The production Docker build currently installs dev dependencies (mypy, ruff, black) which:
- Increases image size unnecessarily
- Adds network dependency risk during deployment (timeouts on large packages)
- Extends build time
Context
During Session 116 deployment, the build failed with a network timeout downloading mypy (5.2/12.4 MB when it timed out). While this is a transient Railway/PyPI issue, it highlighted that these dev dependencies shouldn't be in production at all.
Proposed Solution
Modify backend/Dockerfile to use multi-stage builds or separate requirements files:
requirements.txt- Production dependencies onlyrequirements-dev.txt- Dev/test dependencies (mypy, ruff, black, pytest, etc.)
The production Dockerfile should only install production dependencies.
Files Affected
backend/Dockerfilebackend/requirements.txt(split into prod/dev)
🤖 Generated with Claude Code
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗