@@ -71,27 +71,19 @@ RUN apt-get update && \
71
71
rm -rf /var/lib/apt/lists/*
72
72
73
73
# # FROM CUDA 11.0 base [https://gitlab.com/nvidia/cuda/blob/ubuntu18.04/11.0/base/Dockerfile]
74
-
75
74
RUN apt-get update && \
76
75
apt-get install -y --no-install-recommends gnupg2 curl ca-certificates && \
77
76
curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | apt-key add - && \
78
77
echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list && \
79
78
echo "deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/nvidia-ml.list && \
80
79
rm -rf /var/lib/apt/lists/*
81
-
82
- # For libraries in the cuda-compat-* package: https://docs.nvidia.com/cuda/eula/index.html#attachment-a
83
80
RUN apt-get update && apt-get install -y --no-install-recommends \
84
81
cuda-cudart-11-0=11.0.221-1 \
85
82
cuda-compat-11-0 && \
86
83
ln -s cuda-11.0 /usr/local/cuda && \
87
84
rm -rf /var/lib/apt/lists/*
88
-
89
- # Required for nvidia-docker v1
90
85
RUN echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && \
91
86
echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf
92
-
93
- # # FROM CUDA 11.0 runtime [https://gitlab.com/nvidia/cuda/blob/ubuntu18.04/11.0/runtime/Dockerfile]
94
-
95
87
RUN apt-get update && apt-get install -y --no-install-recommends \
96
88
cuda-libraries-11-0=11.0.3-1 \
97
89
libnpp-11-0=11.1.0.245-1 \
@@ -102,9 +94,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
102
94
&& \
103
95
apt-mark hold libcublas-11-0 libnccl2 && \
104
96
rm -rf /var/lib/apt/lists/*
105
-
106
- # # FROM CUDA 11.0 devel [https://gitlab.com/nvidia/cuda/blob/ubuntu18.04/11.0/devel/Dockerfile]
107
-
108
97
RUN apt-get update && apt-get install -y --no-install-recommends \
109
98
cuda-cudart-dev-11-0=11.0.221-1 \
110
99
cuda-command-line-tools-11-0=11.0.3-1 \
@@ -118,15 +107,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
118
107
&& \
119
108
apt-mark hold libcublas-dev-11-0 libnccl-dev && \
120
109
rm -rf /var/lib/apt/lists/*
121
-
122
- # # FROM CUDA 11.0-CUDNN 8 devel
123
-
124
110
RUN apt-get update && apt-get install -y --no-install-recommends \
125
111
libcudnn8=$CUDNN_VERSION-1+cuda11.0 \
126
112
libcudnn8-dev=$CUDNN_VERSION-1+cuda11.0 && \
127
113
apt-mark hold libcudnn8 && \
128
114
rm -rf /var/lib/apt/lists/*
129
115
116
+ # Install Conda 3.7
130
117
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py37_4.9.2-Linux-x86_64.sh -O miniconda.sh && \
131
118
mkdir -p /opt && \
132
119
sh miniconda.sh -b -p /opt/conda && \
@@ -261,7 +248,7 @@ RUN /opt/conda/bin/python3 -m pip install --no-cache-dir \
261
248
python-language-server[all]
262
249
263
250
# Copy Backend.Ai multi-node support
264
- COPY runner-scripts/bootstrap.sh /opt/container/
251
+ COPY ./ runner-scripts/bootstrap.sh /opt/container/
265
252
COPY ./service-defs /etc/backend.ai/service-defs
266
253
RUN echo "source /opt/espnet/tools/activate_python.sh" >> /etc/profile && \
267
254
chmod +x /opt/espnet/tools/activate_python.sh && \
@@ -285,6 +272,5 @@ LABEL ai.backend.kernelspec="1" \
285
272
ai.backend.runtime-path="/opt/conda/bin/python3" \
286
273
ai.backend.service-ports="ipython:pty:3000,jupyter:http:8081,jupyterlab:http:8090,vscode:http:8180,tensorboard:http:6006"
287
274
288
-
289
275
WORKDIR /home/work
290
276
# vim: ft=dockerfile
0 commit comments