Skip to content

Commit dffe1b2

Browse files
authored
Merge pull request #31 from jojimt/cve_clean
Metadata clean up to ensure scan is ok
2 parents d80a3a8 + cf9f42b commit dffe1b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

deployments/container/Dockerfile.distroless

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
WORKDIR /build
77

@@ -40,12 +40,16 @@ COPY --from=builder /build/gpu-admin-tools /app/gpu-admin-tools
4040
WORKDIR /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)
4646
USER 0:0
4747
SHELL ["/busybox/sh", "-c"]
4848
RUN 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+
4953
ARG VERSION="N/A"
5054
ARG GIT_COMMIT="unknown"
5155

0 commit comments

Comments
 (0)