Fail to build a image
kikosculture
FREEOP

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

Apr 30 17:46:30

pnlcapbot

Dockerfile:20

Apr 30 17:46:30

pnlcapbot

-------------------

Apr 30 17:46:30

pnlcapbot

18 | ENV NIXPACKS_PATH=/opt/venv/bin:$NIXPACKS_PATH

Apr 30 17:46:30

pnlcapbot

19 | COPY . /app/.

Apr 30 17:46:30

pnlcapbot

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

Apr 30 17:46:30

pnlcapbot

21 |

Apr 30 17:46:30

pnlcapbot

22 |

Apr 30 17:46:30

pnlcapbot

-------------------

Apr 30 17:46:30

pnlcapbot

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

Apr 30 17:46:30

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

Solved

1 Replies

a year 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 about 1 year ago


Railway
BOT

a year 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 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...