2024-05-07 10:19:58 +00:00
|
|
|
FROM golang:1.22.2 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 . .
|
2024-01-08 10:34:40 +00:00
|
|
|
RUN .teamcity/install-cloudflare-go.sh
|
2020-10-06 14:41:11 +00:00
|
|
|
# compile cloudflared
|
2024-01-09 21:55:45 +00:00
|
|
|
RUN PATH="/tmp/go/bin:$PATH" make cloudflared
|
2022-05-25 00:26:27 +00:00
|
|
|
RUN cp /go/src/github.com/cloudflare/cloudflared/cloudflared /usr/local/bin/
|