Skip to content

Commit

Permalink
Optimize build time, only build Go once
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa authored Jan 13, 2024
1 parent 05c4658 commit 1a9bff1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ ENV GO111MODULE=on \

ARG VERSION=2024.1.2
RUN git clone https://github.com/cloudflare/cloudflared --depth=1 --branch ${VERSION} .
RUN bash -x .teamcity/install-cloudflare-go.sh

# From this point on, step(s) are duplicated per-architecture
ARG TARGETOS
ARG TARGETARCH
RUN bash -x .teamcity/install-cloudflare-go.sh
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make cloudflared

# Runtime container
Expand Down

0 comments on commit 1a9bff1

Please sign in to comment.