mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-09 17:06:34 +00:00

Also update golang.org/x/net and google.golang.org/grpc to fix vulnerabilities, although cloudflared is using them in a way that is not exposed to those risks
10 lines
268 B
Docker
10 lines
268 B
Docker
FROM golang:1.21.5 as builder
|
|
ENV GO111MODULE=on \
|
|
CGO_ENABLED=0
|
|
WORKDIR /go/src/github.com/cloudflare/cloudflared/
|
|
RUN apt-get update
|
|
COPY . .
|
|
# compile cloudflared
|
|
RUN make cloudflared
|
|
RUN cp /go/src/github.com/cloudflare/cloudflared/cloudflared /usr/local/bin/
|