a year ago
Im trying to deploy a twitter reply bot i followed from a youtube tutorial. I think I almost got it now but ran into this problem where the deployment always fails to build. If anyone can help me i'd really appreciate it. Super new to railway and python.
[stage-0 6/8] RUN --mount=type=cache,id=s/f7a23903-dc83-4711-9511-3cb83ecca018-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt
Dockerfile:20
-------------------
18 | ENV NIXPACKS_PATH=/opt/venv/bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/f7a23903-dc83-4711-9511-3cb83ecca018-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt
21 |
22 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 2
pnlcapbot
Link to my deploy log:
https://railway.com/project/3e92b555-6872-46ea-a25e-87c7449d72ca/logs?environmentId=b1a0ad53-9862-49f8-ab84-673ac42e169a&filter=%40snapshot%3Abb6f0ebd-742b-4e88-9391-3ae0f1731130+OR+%40replica%3Abb6f0ebd-742b-4e88-9391-3ae0f1731130&context=2025-04-30T10%3A46%3A30.596373407Z&start=1746009955969
1 Replies
10 months ago
Hello,
I think you have a typo on your Dockerfile, its named Dockerfile.txt right now.
Best,
Brody
Status changed to Awaiting User Response Railway • 11 months ago
7 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 7 months ago