Spaces:
raheem786
/
Paused

akhaliq HF Staff commited on
Commit
b277d84
·
1 Parent(s): 613b744

Fix Docker build: Copy backend_prompts.py to container

Browse files

Issue: ModuleNotFoundError: No module named 'backend_prompts'
Root cause: backend_prompts.py was created but not copied to Docker container

Fix:
- Add COPY --chown=user:user backend_prompts.py . to Dockerfile
- File is now copied alongside backend_api.py
- Backend can now import prompts successfully

Docker build steps now include:
1. Copy requirements.txt
2. Install Python dependencies
3. Copy anycoder_app/ directory
4. Copy backend_api.py
5. Copy backend_prompts.py ← NEW
6. Copy app.py
7. Copy frontend build

This ensures backend_prompts.py is available when backend_api.py
tries to import it at startup.

1 file changed +1
Dockerfile+1