File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- # Builder stage - use standard Python image for building
1+ # Builder stage - use Debian Python image for building (onnxruntime needs glibc/manylinux)
22FROM python:3.13-slim AS builder
33
44# Set environment variables
@@ -7,7 +7,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
77 UV_CACHE_DIR=/tmp/uv-cache \
88 UV_LINK_MODE=copy
99
10- # Install uv
10+ # Install build dependencies
1111RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && \
1212 curl -LsSf https://astral.sh/uv/install.sh | sh && \
1313 mv /root/.local/bin/uv /usr/local/bin/uv && \
@@ -22,8 +22,8 @@ COPY pyproject.toml uv.lock ./
2222# Install dependencies
2323RUN uv sync --frozen --no-dev
2424
25- # Final stage - use hardened image
26- FROM dhi.io/python:3.13-alpine3.23
25+ # Final stage - use hardened Debian-based image (not Alpine, for onnxruntime compatibility)
26+ FROM dhi.io/python:3.13
2727
2828# Set environment variables
2929ENV PYTHONDONTWRITEBYTECODE=1 \
You can’t perform that action at this time.
0 commit comments