This is an automated email from the ASF dual-hosted git repository.
hgruszecki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new 13f20a802 fix(repo): fixed Docker build on macOS (#2366)
13f20a802 is described below
commit 13f20a80259baea9ca216b5d52fa4de9282d8284
Author: Piotr Wittchen <[email protected]>
AuthorDate: Tue Nov 18 11:48:56 2025 +0100
fix(repo): fixed Docker build on macOS (#2366)
fixed Docker build on macOS by using rust:${RUST_VERSION}-slim-bookworm
base image in the build stage instead of Alpine and removed musl-dev.
Now Rust uses gnu target (glibc) instead of musl, so
__aarch64_ldadd4_sync symbol is no longer casing build failure
Fixes #2320.
Co-authored-by: Hubert Gruszecki <[email protected]>
---
Dockerfile | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 0c260455f..f15bd1e93 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,12 +16,16 @@
# under the License.
ARG RUST_VERSION=1.91
-ARG ALPINE_VERSION=3.22
-FROM rust:${RUST_VERSION}.0-alpine${ALPINE_VERSION} AS builder
-RUN apk add musl-dev
+FROM rust:${RUST_VERSION}-slim-bookworm AS builder
+
WORKDIR /build
-COPY . /build
+RUN apt-get update && apt-get install -y \
+ build-essential \
+ pkg-config \
+ libssl-dev \
+ && rm -rf /var/lib/apt/lists/*
+COPY . .
RUN cargo build --bin iggy --release
RUN cargo build --bin iggy-server --release