forked from nvidia-riva/riva-asrlib-decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
19 lines (16 loc) · 833 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#########################################################################################
## Get manylinux image with any neccessary DALI dependencies.
## It is possible to just use defaults and have a pure manylinux2014 with CUDA on top
## DALI is based on "manylinux2014", official page https://github.com/pypa/manylinux
#########################################################################################
ARG CUDA_VER=11.2.2
ARG ARCH=x86_64
ARG FROM_IMAGE_NAME=quay.io/pypa/manylinux2014_x86_64
ARG CUDA_IMAGE=nvidia/cuda:${CUDA_VER}-devel-centos7 # nvidia/dali:cuda${CUDA_VER}_${ARCH}.toolkit
FROM ${CUDA_IMAGE} as cuda
FROM ${FROM_IMAGE_NAME}
ENV PATH=/usr/local/cuda/bin:${PATH}
ENV NVIDIA_DRIVER_CAPABILITIES=video,compute,utility
ENV NVIDIA_VISIBLE_DEVICES=all
# CUDA
COPY --from=cuda /usr/local/cuda /usr/local/cuda