Statically compile binary in Docker to fix missing dependency errors
This commit is contained in:
parent
ee4967acd4
commit
ab1dca69c9
|
@ -1,5 +1,6 @@
|
||||||
FROM golang:1.12 as builder
|
FROM golang:1.12 as builder
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on
|
||||||
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/github.com/cloudflare/cloudflared/
|
WORKDIR /go/src/github.com/cloudflare/cloudflared/
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends upx
|
RUN apt-get update && apt-get install -y --no-install-recommends upx
|
||||||
# Run after `apt-get update` to improve rebuild scenarios
|
# Run after `apt-get update` to improve rebuild scenarios
|
||||||
|
|
Loading…
Reference in New Issue