From 712f4dcca819d215f4bb95689f97993c2a4e4b0d Mon Sep 17 00:00:00 2001 From: Alexandru Macocian Date: Fri, 22 May 2026 15:58:10 +0200 Subject: [PATCH] fix(docker): add gmp-static for the static link step Alpine 3.22 split the libgmp static archive out of gmp-dev into a separate gmp-static subpackage. Without it, 'crystal build --static' fails with 'ld: cannot find -lgmp ... have you installed the static version of the gmp library'. Verified by inspecting the contents of gmp-dev on crystallang/crystal:1.20.2-alpine (only .so present, no .a). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 447fb51f..1633393b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -22,7 +22,7 @@ RUN cd openssl-${OPENSSL_VERSION} && ./Configure --openssldir=/etc/ssl && make - FROM dependabot-crystal AS builder -RUN apk add --no-cache sqlite-static yaml-static gmp-dev +RUN apk add --no-cache sqlite-static yaml-static gmp-dev gmp-static RUN apk del openssl-dev openssl-libs-static ARG release