h2non / bimg

Go package for fast high-level image processing powered by libvips C library
https://pkg.go.dev/github.com/h2non/bimg?tab=doc
MIT License
2.73k stars 340 forks source link

Docker build problem #425

Open icecream154 opened 2 years ago

icecream154 commented 2 years ago

I can compile my program on my own mac, but i cannot build the docker image. How to use the lib in a docker image? image

canardaaydin commented 1 year ago

same problem

nathan-lapinski commented 1 year ago

Same problem as well. Compiles fine on mac, but I'm receiving the same error as above when trying to compile a binary for a different architecture:

env GOOS=linux GOARCH=386 go build
binrebin commented 1 year ago

remove CGO_ENABLED parameter from buils script. Bimg depends on GCC

suntong commented 12 months ago

Hi, which Dockerfile are you guys talking about please?

I see Dockerfile doesn't have such go mod and building steps, not even in https://github.com/h2non/bimg/commits/master/Dockerfile

What I'm missing please?