barnacs / compy

HTTP/HTTPS compression proxy
ISC License
204 stars 34 forks source link

Docker redo #57

Open SuperSandro2000 opened 5 years ago

SuperSandro2000 commented 5 years ago

Closes #56

lolobosse commented 4 years ago

Hi @SuperSandro2000,

I get following exception with your docker:

Step 6/11 : RUN go build -ldflags='-extldflags "-static" -s -w' -o /go/bin/compy
 ---> Running in a13eac30d4ee
# _/root/go/src/github.com/barnacs/compy
/usr/local/go/pkg/tool/linux_amd64/link: running g++ failed: exit status 1
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -ljpeg
collect2: error: ld returned 1 exit status

Any clue?

SuperSandro2000 commented 4 years ago

@lolobosse no clue, builds for me.

3-w-c commented 2 years ago

@lolobosse I got the same problem, looks like something to do with Alpine's glibc maybe? Switching to the non-Alpine Go image (i.e. 1.16 instead of 1.16-alpine) fixed it for me. Updated PR incoming.

SuperSandro2000 commented 2 years ago

@barnacs bump