Build crashes because a certain node package requires a python installation
hskang9
PROOP
2 years ago
Is there any docker which has python installed?
ⓘ Deployment information is only viewable by project members and Railway employees.
7 Replies
brody
EMPLOYEE
2 years ago
Try adding this nixpacks.toml to your project -
[phases.setup]
nixPkgs = ['...', 'python311', 'gcc']Status changed to Solved Railway • over 1 year ago
hskang9
PROOP
2 years ago
I don't use nix in my github repo.
brody
EMPLOYEE
2 years ago
Unless you have a Dockerfile, nixpacks is what Railway uses to build your app into an OCI image, adding that nixpacks.toml tells nixpacks to include python and gcc.
hskang9
PROOP
2 years ago
nixpack in my railway account just misses python to install node.js. I don't know why and this is frustrating.
hskang9
PROOP
2 years ago
applying nixpacks.toml worked, as you said, it makes a docker image without error.