nixpacks.toml setup for node-gd Lib
I am building nodejs app and using node-gd lib. The App is successfully run on My Local Mac OS.
I create own nixpack.toml file because I need to install some libs like
libgd-dev
and deploy in Railway app.
The build is successfully published. But when I run the API , i got error at libgb.so.3. When I do googling I found some solution but not working well .
here is error msg from Railways logs
the lib I need to install
my custome nixpacks.toml
here is project ID => https://railway.app/project/1c9ac1a8-e3e3-4815-99a2-095c38d371f9Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
10 Replies
Project ID:
1c9ac1a8-e3e3-4815-99a2-095c38d371f9
a nixpacks.toml file is additive, meaning that you only need to specify what you want to change, for example nixpacks will automatically install the dependencies therefore you don't need to specify that in your nixpacks.toml
so while I think this won't work, this would still be the better way to write that nixpacks.toml
and a note on why I still don't think this would work, nixpacks will install those apt packages, but the library paths dont seem to be updated so the compiler wont find the libraries, in this case i always default to using a docker
let me clean, nixpack.toml and try again. still fail I will try docker way
sounds good, if you need to go the dockerfile route I could try to write one for you later, may need access to thr repo for that so I can understand whats going on and test the dockerfile I write against your repo
can you support sample docker file with node js support format?
I currently don't have one on hand as I'm out for lunch, but there are plenty of examples online, all you'd need to do for railway to use a Dockerfile would be to place the Dockerfile at the root of your project
it is OK
show i need to add
yes you would need a CMD directive
cool
working well
no problem!!