From 68e9f2fc1e12e164f8bbaa6e74fe86849807fbe4 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Sun, 19 Nov 2023 13:46:05 -0800 Subject: [PATCH] fix: RUST_TOOLCHAIN need to be inside of from block --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 48dca6c5b696..69ac755a59fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,11 +5,12 @@ ARG CUDA_VERSION=11.7.1 ARG BASE_CUDA_DEV_CONTAINER=nvidia/cuda:${CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION} # Target the CUDA runtime image ARG BASE_CUDA_RUN_CONTAINER=nvidia/cuda:${CUDA_VERSION}-runtime-ubuntu${UBUNTU_VERSION} -# Rust toolchain version -ARG RUST_TOOLCHAIN stable FROM ${BASE_CUDA_DEV_CONTAINER} as build +# Rust toolchain version +ARG RUST_TOOLCHAIN stable + ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get install -y --no-install-recommends \