File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11# Multi-stage build for NVIDIA k8s-cc-manager Python implementation
22
33# Stage 1: Build dependencies
4- FROM python:3.11 -slim AS builder
4+ FROM python:3.13 -slim AS builder
55
66WORKDIR /build
77
@@ -40,12 +40,16 @@ COPY --from=builder /build/gpu-admin-tools /app/gpu-admin-tools
4040WORKDIR /app
4141
4242# Set PYTHONPATH to find installed packages
43- ENV PYTHONPATH=/usr/local/lib/python3.11 /site-packages
43+ ENV PYTHONPATH=/usr/local/lib/python3.13 /site-packages
4444
4545# Run as non-root (distroless default)
4646USER 0:0
4747SHELL ["/busybox/sh", "-c"]
4848RUN ln -s /busybox/sh /bin/sh
49+
50+ # clean up left over dist-info
51+ RUN rm -rf /usr/local/lib/python3.13/site-packages/urllib3-2.3.0.dist-info
52+
4953ARG VERSION="N/A"
5054ARG GIT_COMMIT="unknown"
5155
You can’t perform that action at this time.
0 commit comments