File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,13 @@ ARG XX_VERSION=1.4.0
8
8
ARG GO_VERSION=1.21
9
9
10
10
FROM --platform=${BUILDPLATFORM:-linux/amd64} tonistiigi/xx:${XX_VERSION} AS xx
11
- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:${GO_VERSION}-alpine AS builder
12
- RUN apk --update --no-cache add file git
11
+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS builder
12
+ RUN apk --update --no-cache add file
13
13
COPY --from=xx / /
14
14
WORKDIR /src
15
15
ARG CLOUDFLARED_VERSION
16
- RUN git clone --branch ${CLOUDFLARED_VERSION} https://github.com/cloudflare/cloudflared .
16
+ ADD " https://github.com/cloudflare/cloudflared.git#${CLOUDFLARED_VERSION}" .
17
17
ARG TARGETPLATFORM
18
- ENV GO111MODULE=on
19
18
ENV CGO_ENABLED=0
20
19
RUN xx-go build -v -mod=vendor -trimpath -o /bin/cloudflared \
21
20
-ldflags="-w -s -X 'main.Version=${CLOUDFLARED_VERSION}' -X 'main.BuildTime=${BUILD_DATE}'" \
You can’t perform that action at this time.
0 commit comments