forked from NVIDIA-Merlin/NVTabular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.nvtab
38 lines (31 loc) · 1.13 KB
/
Dockerfile.nvtab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
ARG CUDA_VERSION=10.1
ARG CUDA_SHORT_VERSION=${CUDA_VERSION}
ARG LINUX_VERSION=ubuntu18.04
FROM nvidia/cuda:${CUDA_VERSION}-devel-${LINUX_VERSION}
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/lib
# Needed for cudf.concat(), avoids "OSError: library nvvm not found"
ENV NUMBAPRO_NVVM=/usr/local/cuda/nvvm/lib64/libnvvm.so
ENV NUMBAPRO_LIBDEVICE=/usr/local/cuda/nvvm/libdevice/
ARG PYTHON_VERSION=3.7
ENV DEBIAN_FRONTEND=noninteractive
ARG CC=7
ARG CXX=7
RUN apt update -y --fix-missing && \
apt upgrade -y && \
apt install -y \
git \
gcc-${CC} \
g++-${CXX} \
libboost-all-dev \
tzdata
# Install conda
ADD https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh /miniconda.sh
RUN sh /miniconda.sh -b -p /conda && /conda/bin/conda update -n base conda
ENV PATH=${PATH}:/conda/bin
# Enables "source activate conda"
SHELL ["/bin/bash", "-c"]
RUN conda install -c rapidsai -c nvidia -c numba -c conda-forge \
cudf python=${PYTHON_VERSION} cudatoolkit=${CUDA_SHORT_VERSION}
RUN conda install -c conda-forge pyyaml
COPY . nvtabular/
RUN pip install --no-cache-dir -e nvtabular/.