Add production Dockerfile and fix critical test/security issues #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds Docker containerization support and fixes critical issues blocking commercial release of QuantCoder CLI v2.0.0. It includes a production-ready multi-stage Dockerfile, docker-compose configuration, and fixes for failing tests, runtime bugs, and security vulnerabilities.
Key Changes
Docker Support
Bug Fixes
RiskAgent.execute():constraints=→risk_parameters=StrategyAgent.execute(): Updated parameter names and assertionsSearchArticlesTool: Now correctly expects failure when no articles foundValidateCodeTool: Updated to test code parameter instead of file paths@patch('dotenv.load_dotenv')decorators to environment-dependent testsDocumentation Updates
Production Readiness Review
Implementation Details
Dockerfile Design
python:3.11-slimfor minimal footprint/opt/venvfor clean isolationquantcoderuser for securityquantcoder --versioncommand.quantcoder,downloads, andgenerated_codedirectoriesTest Fixes
Notes
This PR addresses critical blockers for commercial Docker product release:
The production readiness review document provides a detailed roadmap for achieving commercial-grade quality, with estimated 4-6 weeks of effort for full compliance.