Issue with Docker Build on Railway
nico961009
HOBBYOP

a year ago

Hello community,

I'm facing difficulties while trying to build my Dockerfile on Railway. The error I'm receiving is:

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

I've tried updating pip and setuptools, disabling pip cache, and checking system dependencies with no success. Has anyone encountered this issue before or have any suggestions on how to resolve it?

Any help would be greatly appreciated!

Thank you,

View Deploy details

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

Solved

10 Replies

brody
EMPLOYEE

a year ago

Please attach your Dockerfile, and your full build logs -

https://bookmarklets.up.railway.app/log-downloader/


nico961009
HOBBYOP

a year ago

I attach the required file:

Attachments


nico961009
HOBBYOP

a year ago

And this is the requirement.txt :

asgiref==3.7.1
autopep8==2.0.1
Babel==2.12.1
backports.zoneinfo==0.2.1
channels==4.0.0
click==8.1.3
config==0.5.1
dash==2.8.1
dash-bootstrap-components==1.4.0
dash-core-components==2.0.0
dash-html-components==2.0.0
dash-table==5.0.0
Django==3.2.18
django-bootstrap-datepicker-plus==5.0.3
django-config==0.1.4
django-dynamic-fixture==3.1.2
django-environ==0.10.0
django-filter==23.2
django-pandas==0.6.6
django-plotly-dash==2.1.4
dpd-components==0.1.0
et-xmlfile==1.1.0
exceptiongroup==1.1.1
factory-boy==3.2.1
Faker==18.7.0
Flask==2.2.3
gunicorn==20.1.0
importlib-metadata==6.0.0
iniconfig==2.0.0
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.2
numpy==1.24.2
openpyxl==3.1.2
packaging==23.0
pandas==1.5.3
patsy==0.5.3
Pillow==9.4.0
plotly==5.13.1
plotly-express==0.4.0
pluggy==1.0.0
psycopg2-binary==2.9.5
pycodestyle==2.10.0
pydantic==1.10.7
pytest==7.3.1
pytest-django==4.5.2
python-dateutil==2.8.2
python-decouple==3.8
python-dotenv==1.0.0
pytz==2023.3
reportlab==4.0.7
scipy==1.10.1
six==1.16.0
sqlparse==0.4.4
statsmodels==0.13.5
tenacity==8.2.2
tomli==2.0.1
typing_extensions==4.6.1
Werkzeug==2.2.3
whitenoise==6.4.0
XlsxWriter==3.1.2
zipp==3.15.0

brody
EMPLOYEE

a year ago

You said "my Dockerfile" but this build was done with nixpacks?


nico961009
HOBBYOP

a year ago

sorry, that´s true. The Dockerfile was done with nixpacks


nico961009
HOBBYOP

a year ago

Hi there !

any update ?


brody
EMPLOYEE

a year ago

What version of python do you use locally?


nico961009
HOBBYOP

a year ago

Python 3.8.8 <-- This version


brody
EMPLOYEE

a year ago

Then you need a runtime.txt file with 3.8 in it.


Status changed to Solved Railway over 1 year ago


nico961009
HOBBYOP

a year ago

It worked ! thank you so much


Loading...