Set CUDA_VERSION as build ARG

Signed-off-by: Marcel Coetzee <marcel@mooncoon.com>
This commit is contained in:
Marcel Coetzee 2023-05-18 16:59:42 +02:00
parent 6c57d38552
commit 6ece8a225a

View file

@ -1,4 +1,5 @@
FROM nvidia/cuda:12.0.1-devel-ubuntu22.04 ARG CUDA_VERSION=12.1.1
FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu22.04
# We need to set the host to 0.0.0.0 to allow outside access # We need to set the host to 0.0.0.0 to allow outside access
ENV HOST 0.0.0.0 ENV HOST 0.0.0.0