Deploy failed
sappacademy2025
FREEOP
5 months ago
I'm trying deploy my app, but at the end i am getting BUILD TIME OUT. I don't know why this, i tried 8 times. just i need help at this stage
Attachments
1 Replies
domehane
FREE
4 months ago
i think the timeout is happening because you're copying too many files to the build. create a .dockerignore file in your root directory with this:
.git
__pycache__
*.pyc
venv/
.venv
env/
.pytest_cache
*.log
.DS_Store
node_modules/also if that doesn't work right away, go to your railway service settings and add an environment variable NO_CACHE=1 to force a fresh build without cached layers
commit the .dockerignore, push, and it should deploy way faster. the copying step is what's killing you right now