Skip to content

Commit 9918ac2

Browse files
committed
Dockerfile updates.
1 parent e778be0 commit 9918ac2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Dockerfile_hub

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ ENV DEBIAN_PRIORITY=critical
2020
ARG CPU_ARCHITECTURE
2121
ENV CPU_ARCHITECTURE=${CPU_ARCHITECTURE}
2222

23+
# prefer prebuilt wheels, never build from sdist for known heavy libs
24+
ENV PIP_PREFER_BINARY=1
25+
ENV PIP_ONLY_BINARY=:all:
26+
2327
USER root
2428

2529
RUN apt-get update && apt-get upgrade -y && \

Dockerfile_singleuser

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ ENV NVIDIA_DRIVER_VERSION=510
2929
ENV NVIDIA_VISIBLE_DEVICES=all
3030
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
3131

32+
# prefer prebuilt wheels, never build from sdist for known heavy libs
33+
ENV PIP_PREFER_BINARY=1
34+
ENV PIP_ONLY_BINARY=:all:
35+
3236
USER root
3337

3438
RUN apt-get update && apt-get upgrade -y && \

0 commit comments

Comments
 (0)