goreleaser / goreleaser-cross

Docker image for Golang cross-compiling with CGO
MIT License
136 stars 23 forks source link

Question: recommended way to add c libraries in the image #5

Closed olup closed 2 years ago

olup commented 2 years ago

I use a libmp3lame binding in my project, and I am not sure how to have those available in the docker image. Do I need to recreate an image including those ? Should I just have them in my repo and point the compiler to them ? Can I apt-get them from the container ?

olup commented 2 years ago

Ok, no worries, I guess I need to be making a sysroot ?

troian commented 2 years ago

Yeah, sysroot is only the path 😉