fix(workflow): Use backend/Dockerfile.backend instead of Dockerfile.codeengine #645
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 updates the GitHub Actions workflow to use the correct backend Dockerfile (
backend/Dockerfile.backend) instead of the outdatedDockerfile.codeengine.Problem
The workflow was using
Dockerfile.codeenginewhich:❌ Used
poetry installthat pulled CUDA PyTorch frompoetry.lock(~6-8GB of NVIDIA libraries)❌ Caused massive Docker image bloat
❌ Led to deployment failures from size and dependency issues
Solution
Changed the workflow to use
backend/Dockerfile.backendwhich:✅ Parses
pyproject.tomldirectly with pip✅ Uses CPU-only PyTorch via
--extra-index-url https://download.pytorch.org/whl/cpu✅ Significantly reduces image size (~500MB vs 6-8GB)
✅ Works seamlessly with fixes from PR #642 (transformers[vision] + numpy cleanup)
Before:
After:
Changes
.github/workflows/deploy_complete_app.yml(line 215): Updated Dockerfile path to./backend/Dockerfile.backendTesting
This fix will be validated in the CI pipeline. Expected behavior:
✅ Builds use correct Dockerfile (backend/Dockerfile.backend)
✅ CPU-only PyTorch (no CUDA libraries)
✅ Smaller image size (~500MB)
✅ Successful deployment (no import errors)
✅ Backend starts correctly with all dependencies
Type of Change
Related PRs
This is part of the focused PR strategy to replace PR #641:
Together, these PRs fix 50+ failed deployments over the past 2 days.
Checklist
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com