We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c63c42b commit 08dbc96Copy full SHA for 08dbc96
Dockerfile
@@ -18,7 +18,10 @@ RUN bash -x .teamcity/install-cloudflare-go.sh
18
# From this point on, step(s) are duplicated per-architecture
19
ARG TARGETOS
20
ARG TARGETARCH
21
-RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make cloudflared
+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
25
26
# Runtime container
27
FROM scratch
0 commit comments