Browse Source

do not use upx

master
Simon Bruder 4 years ago
parent
commit
09c4d66797
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
  1. 5
      Dockerfile

5
Dockerfile

@ -4,11 +4,10 @@ WORKDIR /go/src/git.sbruder.de/simon/alertmanager-gotify/
COPY alertmanager-gotify.go .
RUN apk add --no-cache git upx ca-certificates
RUN apk add --no-cache git ca-certificates
RUN go get -v \
&& CGO_ENABLED=0 go build -v -ldflags="-s -w" \
&& upx --ultra-brute alertmanager-gotify
&& CGO_ENABLED=0 go build -v -ldflags="-s -w"
FROM scratch