TUN-3446: Use go 1.15.2 and add a step to build cloudflared in the dev Dockerfile

This commit is contained in:
cthuang 2020-10-06 15:41:11 +01:00 committed by Chung Ting Huang
parent b05d826d22
commit 1e6399c2f0
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# use a builder image for building cloudflare
ARG TARGET_GOOS
ARG TARGET_GOARCH
FROM golang:1.13.3 as builder
FROM golang:1.15.2 as builder
ENV GO111MODULE=on \
CGO_ENABLED=0 \
TARGET_GOOS=${TARGET_GOOS} \

View File

@ -1,4 +1,9 @@
FROM golang:1.12 as builder
FROM golang:1.15.2 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/