Skip to content

Commit

Permalink
move it up
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Nov 16, 2023
1 parent c12d352 commit 20e5b8b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,15 @@ RUN pip install --no-cache-dir --upgrade \
ipython${IPYTHON_VERSION} \
urllib3${URLLIB3_VERSION}

##################################################
# Override NVIDIA mistaken env var for 11.8 images
##################################################
ARG NVIDIA_REQUIRE_CUDA_OVERRIDE
ENV NVIDIA_REQUIRE_CUDA=${NVIDIA_REQUIRE_CUDA_OVERRIDE:-$NVIDIA_REQUIRE_CUDA}

# Echo the new env var
RUN echo "NVIDIA_REQUIRE_CUDA_OVERRIDE=${NVIDIA_REQUIRE_CUDA_OVERRIDE}"
RUN echo "NVIDIA_REQUIRE_CUDA=${NVIDIA_REQUIRE_CUDA}"

################
# Composer Image
Expand All @@ -370,13 +379,3 @@ ARG DEBIAN_FRONTEND=noninteractive
ARG COMPOSER_INSTALL_COMMAND

RUN pip install "${COMPOSER_INSTALL_COMMAND}"

##################################################
# Override NVIDIA mistaken env var for 11.8 images
##################################################
ARG NVIDIA_REQUIRE_CUDA_OVERRIDE
ENV NVIDIA_REQUIRE_CUDA=${NVIDIA_REQUIRE_CUDA_OVERRIDE:-$NVIDIA_REQUIRE_CUDA}

# Echo the new env var
RUN echo "NVIDIA_REQUIRE_CUDA_OVERRIDE=${NVIDIA_REQUIRE_CUDA_OVERRIDE}"
RUN echo "NVIDIA_REQUIRE_CUDA=${NVIDIA_REQUIRE_CUDA}"

0 comments on commit 20e5b8b

Please sign in to comment.