Error during Django project deployment
reginaldopassos
TRIALOP

2 years ago

Good night, how are you?
I'm trying to deploy, but the following message appears

2 warnings found (use --debug to expand):

  • UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)

Dockerfile:20

18 | ENV NIXPACKSPATH /opt/venv/bin:$NIXPACKSPATH

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/bf7f2146-324c-4f31-9bdf-4f460dddaabc-/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: 1

Error: Docker build failed

Would you be able to help me?

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

2 years ago

I would recommend using a pure python mysql client.


Loading...