a year ago
I need to run these commands:
sudo apt-get update
sudo apt-get install libharfbuzz0b libfontconfig1 libfreetype6 libgl1-mesa-dev libglu1-mesa
so I can use SkiaSharp for my project. Is there anything else I can do to get these packages, or is there a way to run these commands?
0 Replies
a year ago
N/A
A docker image is going to be your best bet. Just setup your image to download everything you need for the build and the entry point for the deployment command.
a year ago
while i like dockerfiles more than the next guy, it would be easier for the end user to attempt this with nixpacks, and if that doesnt work then its dockerfile time.
a year ago
so lets attempt it with nixpacks, add this nixpacks.toml file to your project -
[phases.setup]
aptPkgs = ['...', 'libharfbuzz0b', 'libfontconfig1', 'libfreetype6', 'libgl1-mesa-dev', 'libglu1-mesa']
Hmmm, actually, I do get what you mean here. Yea, if everything else was already working, just try a simple nixpacks config update.
hehe, I was too focused on the fact that they wrote out the exact command they needed "RUN
"
a year ago
haha oops, I am not used to using config on this project lol my bad
a year ago
it was close, they'd need a -y flag to apt-get install too
a year ago
hmm, this still did not fix my issue
a year ago
build logs please -
a year ago
it might not be in the build logs
a year ago
my project can deploy and parts of it work
a year ago
please send the build logs anyway
a year ago
just not the part which uses SkiaSharp
a year ago
ok
a year ago
a year ago
these are the deploy logs
a year ago
indeed my bad
a year ago
a year ago
Yep they are getting installed, but it still doesnt work, was worth a shot but we have to go with joshie's recommendation, you will need to write a Dockerfile
a year ago
dang
a year ago
why does it always build with NIX packs and not the docker file?
a year ago
is your Dockerfile named Dockerfile
?
a year ago
yes
a year ago
is it located in the root of your project or the root according to your service settings?
a year ago
yes
a year ago
build logs please
a year ago
a year ago
are you able to share your repo?
a year ago
uh yeah,
a year ago
this specific branch
a year ago
it is not
a year ago
ah…..
a year ago
thanks very much for the help
a year ago
got it working?
a year ago
yup
a year ago
awsome!
a year ago
please do not close threads