Skip to content

Commit 08dbc96

Browse files
committed
Fix support for linux/arm/6, closes #23
1 parent c63c42b commit 08dbc96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ RUN bash -x .teamcity/install-cloudflare-go.sh
1818
# From this point on, step(s) are duplicated per-architecture
1919
ARG TARGETOS
2020
ARG TARGETARCH
21-
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make cloudflared
21+
ARG TARGETVARIANT
22+
# Fixes execution on linux/arm/v6 for devices that don't support armv7 binaries
23+
RUN if [ "${TARGETVARIANT}" = "v6" ] && [ "${TARGETARCH}" = "arm" ]; then export GOARM=6; fi; \
24+
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make cloudflared
2225

2326
# Runtime container
2427
FROM scratch

0 commit comments

Comments
 (0)