Fix: pin Python 3.12 for torch compatibility on aarch64

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 08:34:57 +00:00
parent ddbe61818b
commit db8f6cb500

View File

@@ -11,7 +11,7 @@ FROM alpine:3.21
RUN apk add --no-cache ca-certificates curl bash
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:$PATH"
RUN uv venv /app/venv && uv pip install --python /app/venv/bin/python sentence-transformers
RUN uv venv --python 3.12 /app/venv && uv pip install --python /app/venv/bin/python sentence-transformers
RUN /app/venv/bin/python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
RUN mkdir -p /app/data/workspaces
WORKDIR /app