From 3d1c910c4ae3aec8172922ff20b6065604c196f8 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Sun, 1 Mar 2026 08:38:49 +0000 Subject: [PATCH] Switch Docker base from alpine to debian-slim for torch compatibility torch/sentence-transformers only provide manylinux (glibc) wheels, not musl. The musl-compiled tori binary is statically linked and runs fine on glibc systems. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2d22a93..f3c6cfa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,9 @@ RUN npm ci COPY web/ ./ RUN npm run build -# Stage 2: Runtime -FROM alpine:3.21 -RUN apk add --no-cache ca-certificates curl bash +# Stage 2: Runtime (debian for glibc — torch/sentence-transformers need manylinux wheels) +FROM debian:bookworm-slim +RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* RUN curl -LsSf https://astral.sh/uv/install.sh | sh ENV PATH="/root/.local/bin:$PATH" RUN uv venv --python 3.12 /app/venv && uv pip install --python /app/venv/bin/python sentence-transformers