getting libcairo not found
i tried setting both of these... but no dice:
NIXPACKS_APT_PKGS=libcairo2,libcairo2-dev
NIXPACKS_PKGS= cairo
i still get this in my logs:
when i run sudo apt install libcairo2 and libcairo2-dev on jammy... everything works in my build
should i just stick that in the run command?
seems hacky
11 Replies
Project ID:
N/A
it would be best for you to build your app with a dockerfile
looks like this is a known issue: https://www.reddit.com/r/django/comments/184b0yk/django_project_deploying_in_railway/
didn't even know nix supported dockerfiles
how do i convince it to use a dockerfile?
nixpacks and dockerfiles are not mutually exclusive, if you are using a dockerfile nixpacks has nothing to do with the build anymore
you simply place a
Dockerfile
in your repocool
the thing is... it really looks like it's doing the right thing:
#9 17.60 Unpacking libcairo2:amd64 (1.16.0-5ubuntu2) ...
#9 17.63 Selecting previously unselected package libcairo-gobject2:amd64.
i suspect it's a path thing.
oh I know, it is doing the right thing but for some unknown reason during runtime it's like none of that stuff was ever installed
better to just use a Dockerfile for this kind of thing so you don't have to deal with the nixpacks stuff
if i use a dockerfile... do i still get the environment variables exposed nicely with the control panel?
yes of course
everything works... and the builds are faster because i can carefully control the layers. thanks a lot.
no problem!
a Dockerfile is always going to be the go to for people who want absolute control over their build