diff --git a/Dockerfile b/Dockerfile index 7a142e6b..89e04a66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ FROM golang:1.12 as builder +ENV GO111MODULE=on +ENV CGO_ENABLED=0 +ENV GOOS=linux WORKDIR /go/src/github.com/cloudflare/cloudflared/ RUN apt-get update && apt-get install -y --no-install-recommends upx # Run after `apt-get update` to improve rebuild scenarios