From 6e4d7f59916434ff53ee44b9df423abb5b7a22b7 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Sun, 8 Feb 2026 09:40:31 -0800 Subject: [PATCH] Fix Alloy binary on Alpine: add libc6-compat The grafana/alloy image is Ubuntu-based (glibc), but our container uses nginx:alpine (musl). The binary exists but fails with "not found" because the glibc dynamic linker is missing. libc6-compat provides the compatibility shim. Co-Authored-By: Claude Opus 4.6 --- fly/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fly/Dockerfile b/fly/Dockerfile index ca20beb..6e6146c 100644 --- a/fly/Dockerfile +++ b/fly/Dockerfile @@ -7,9 +7,10 @@ COPY --from=docker.io/tailscale/tailscale:stable \ /usr/local/bin/tailscale /usr/local/bin/tailscale RUN mkdir -p /var/run/tailscale /var/lib/tailscale \ - && apk add --no-cache iptables ip6tables + && apk add --no-cache iptables ip6tables \ + && apk add --no-cache libc6-compat -# Copy Alloy binary from official image +# Copy Alloy binary from official image (Ubuntu-based, needs libc6-compat) COPY --from=docker.io/grafana/alloy:v1.5.1 \ /bin/alloy /usr/local/bin/alloy