Fix cloudflare multiarch build

This commit is contained in:
nicolas.dorier 2025-02-19 16:00:53 +09:00
parent 3292b58f0c
commit b70a4ddce6
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
FROM --platform=$BUILDPLATFORM golang:1.23.0 AS builder
ARG TARGETARCH
ENV GO111MODULE=on \
CGO_ENABLED=0 \
CLOUDFLARED_VERSION=2024.8.2

View File

@ -2,4 +2,4 @@
echo "$(/sbin/ip route|awk '/default/ { print $3 }') host.docker.internal" >> /etc/hosts
exec cloudflared --no-autoupdate "$@"
exec cloudflared --no-autoupdate "$@"