mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-04-07 06:50:09 +02:00
cgo compilation workaround for go 1.9.4 (#52)
This https://github.com/golang/go/issues/23672 security fix breaks CGO compilation in go version 1.9.4 by disallowing LDFLAGS in process.go:5
This commit is contained in:
parent
74b0a672c6
commit
5062e7494d
@ -12,7 +12,7 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/reposit
|
||||
&& apk add --no-cache --update bash vips ca-certificates \
|
||||
&& apk add --no-cache --virtual .build-deps go gcc musl-dev fftw-dev vips-dev \
|
||||
&& cd /go/src/github.com/DarthSim/imgproxy \
|
||||
&& go build -v -o /usr/local/bin/imgproxy \
|
||||
&& CGO_LDFLAGS_ALLOW="-s|-w" go build -v -o /usr/local/bin/imgproxy \
|
||||
&& apk del --purge .build-deps \
|
||||
&& rm -rf /var/cache/apk*
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user