dev.Dockerfile 332 B

1234567891011
  1. FROM golang:1.22.5 as builder
  2. ENV GO111MODULE=on \
  3. CGO_ENABLED=0
  4. WORKDIR /go/src/github.com/cloudflare/cloudflared/
  5. RUN apt-get update
  6. COPY . .
  7. RUN .teamcity/install-cloudflare-go.sh
  8. # compile cloudflared
  9. RUN PATH="/tmp/go/bin:$PATH" make cloudflared
  10. RUN cp /go/src/github.com/cloudflare/cloudflared/cloudflared /usr/local/bin/