Skip to content

Commit 7853d68

Browse files
committed
armhf: fix FTBFS on armhf
Closes: #455 Patch by Shizuo Fujita <[email protected]> The armhf build was failing with an execve error (exit code 127) during apk add curl. Seems it is compatibility issues between recent Alpine Linux versions (time64 syscalls) and QEMU emulation. Similar with https://gitlab.alpinelinux.org/alpine/aports/-/issues/17775 The failure was occurred in builder stage. For file downloads, we can use the same architecture as the host. Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent 5ebddb4 commit 7853d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile.template.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ FROM alpine:3.19
2323
<% else %>
2424
<% if is_armhf %>
2525
# To set multiarch build for Docker hub automated build.
26-
FROM golang:alpine AS builder
26+
FROM --platform=$BUILDPLATFORM golang:alpine AS builder
2727
WORKDIR /go
2828
ENV QEMU_DOWNLOAD_SHA256 47ae430b0e7c25e1bde290ac447a720e2ea6c6e78cd84e44847edda289e020a8
2929
RUN apk add curl --no-cache

0 commit comments

Comments
 (0)