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:
parent
ddbe61818b
commit
db8f6cb500
@ -11,7 +11,7 @@ FROM alpine:3.21
|
|||||||
RUN apk add --no-cache ca-certificates curl bash
|
RUN apk add --no-cache ca-certificates curl bash
|
||||||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
ENV PATH="/root/.local/bin:$PATH"
|
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 /app/venv/bin/python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
|
||||||
RUN mkdir -p /app/data/workspaces
|
RUN mkdir -p /app/data/workspaces
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user