konyan
konyan
RRailway
Created by konyan on 11/15/2023 in #✋|help
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
libgd.so.3: cannot open shared object file: No such file or directory
libgd.so.3: cannot open shared object file: No such file or directory
the lib I need to install
https://www.npmjs.com/package/node-gd
https://www.npmjs.com/package/node-gd
my custome nixpacks.toml
providers = ["node"]

[phases.setup]
nixLibs = ['...',"python38"]
nixPkgs = ['nodejs', 'yarn']
aptPkgs = ['...','python3','make','g++','libgd-dev','freeglut3']

[phases.install]
cmd = "yarn install"

[phases.start]
cmd = "yarn start"
providers = ["node"]

[phases.setup]
nixLibs = ['...',"python38"]
nixPkgs = ['nodejs', 'yarn']
aptPkgs = ['...','python3','make','g++','libgd-dev','freeglut3']

[phases.install]
cmd = "yarn install"

[phases.start]
cmd = "yarn start"
here is project ID => https://railway.app/project/1c9ac1a8-e3e3-4815-99a2-095c38d371f9
15 replies