Skip to content

Commit 2a0a909

Browse files
committed
fix: build docker binaries on buildplatform
1 parent d52c058 commit 2a0a909

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# syntax=docker/dockerfile:1
22

33
# -- Stage 1: Build ----------------------------------------------------------
4-
FROM alpine:3.23 AS builder
4+
# Build on the native builder architecture and cross-compile with Zig.
5+
FROM --platform=$BUILDPLATFORM alpine:3.23 AS builder
56

67
RUN apk add --no-cache zig musl-dev
78

0 commit comments

Comments
 (0)