Skip to content

Commit

Permalink
Fix support for linux/arm/6, closes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa committed Feb 8, 2024
1 parent c63c42b commit 08dbc96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ RUN bash -x .teamcity/install-cloudflare-go.sh
# From this point on, step(s) are duplicated per-architecture
ARG TARGETOS
ARG TARGETARCH
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make cloudflared
ARG TARGETVARIANT
# Fixes execution on linux/arm/v6 for devices that don't support armv7 binaries
RUN if [ "${TARGETVARIANT}" = "v6" ] && [ "${TARGETARCH}" = "arm" ]; then export GOARM=6; fi; \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make cloudflared

# Runtime container
FROM scratch
Expand Down

0 comments on commit 08dbc96

Please sign in to comment.