2021-05-06 17:30:01 +00:00
|
|
|
FROM golang:1.16.4 as builder
|
2020-10-06 14:41:11 +00:00
|
|
|
ENV GO111MODULE=on \
|
|
|
|
CGO_ENABLED=0
|
2019-11-12 18:50:41 +00:00
|
|
|
WORKDIR /go/src/github.com/cloudflare/cloudflared/
|
|
|
|
RUN apt-get update
|
|
|
|
COPY . .
|
2020-10-06 14:41:11 +00:00
|
|
|
# compile cloudflared
|
|
|
|
RUN make cloudflared
|
|
|
|
RUN cp /go/src/github.com/cloudflare/cloudflared/cloudflared /usr/local/bin/
|