2 years ago
I need to run these commands:
sudo apt-get update
sudo apt-get install libharfbuzz0b libfontconfig1 libfreetype6 libgl1-mesa-dev libglu1-mesaso 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?
38 Replies
2 years 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.
2 years 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.
2 years 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"
2 years ago
haha oops, I am not used to using config on this project lol my bad
2 years ago
it was close, they'd need a -y flag to apt-get install too
2 years ago
hmm, this still did not fix my issue
2 years ago
build logs please -
2 years ago
it might not be in the build logs
2 years ago
my project can deploy and parts of it work
2 years ago
please send the build logs anyway
2 years ago
just not the part which uses SkiaSharp
2 years ago
ok
2 years ago
2 years ago
these are the deploy logs
2 years ago
indeed my bad
2 years ago
2 years 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
2 years ago
dang
2 years ago
why does it always build with NIX packs and not the docker file?
2 years ago
is your Dockerfile named Dockerfile?
2 years ago
yes
2 years ago
is it located in the root of your project or the root according to your service settings?
2 years ago
yes
2 years ago
build logs please
2 years ago
2 years ago
are you able to share your repo?
2 years ago
uh yeah,
2 years ago
this specific branch
2 years ago
it is not
2 years ago
ah…..
2 years ago
thanks very much for the help
2 years ago
got it working?
2 years ago
yup
2 years ago
awsome!
2 years ago
please do not close threads