Skip to content

Commit 859636f

Browse files
committed
clean up build inst.
1 parent 3a1e1ea commit 859636f

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

python-espnet/Dockerfile

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,27 +71,19 @@ RUN apt-get update && \
7171
rm -rf /var/lib/apt/lists/*
7272

7373
## FROM CUDA 11.0 base [https://gitlab.com/nvidia/cuda/blob/ubuntu18.04/11.0/base/Dockerfile]
74-
7574
RUN apt-get update && \
7675
apt-get install -y --no-install-recommends gnupg2 curl ca-certificates && \
7776
curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | apt-key add - && \
7877
echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list && \
7978
echo "deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/nvidia-ml.list && \
8079
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
8380
RUN apt-get update && apt-get install -y --no-install-recommends \
8481
cuda-cudart-11-0=11.0.221-1 \
8582
cuda-compat-11-0 && \
8683
ln -s cuda-11.0 /usr/local/cuda && \
8784
rm -rf /var/lib/apt/lists/*
88-
89-
# Required for nvidia-docker v1
9085
RUN echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && \
9186
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-
9587
RUN apt-get update && apt-get install -y --no-install-recommends \
9688
cuda-libraries-11-0=11.0.3-1 \
9789
libnpp-11-0=11.1.0.245-1 \
@@ -102,9 +94,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
10294
&& \
10395
apt-mark hold libcublas-11-0 libnccl2 && \
10496
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-
10897
RUN apt-get update && apt-get install -y --no-install-recommends \
10998
cuda-cudart-dev-11-0=11.0.221-1 \
11099
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 \
118107
&& \
119108
apt-mark hold libcublas-dev-11-0 libnccl-dev && \
120109
rm -rf /var/lib/apt/lists/*
121-
122-
## FROM CUDA 11.0-CUDNN 8 devel
123-
124110
RUN apt-get update && apt-get install -y --no-install-recommends \
125111
libcudnn8=$CUDNN_VERSION-1+cuda11.0 \
126112
libcudnn8-dev=$CUDNN_VERSION-1+cuda11.0 && \
127113
apt-mark hold libcudnn8 && \
128114
rm -rf /var/lib/apt/lists/*
129115

116+
# Install Conda 3.7
130117
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py37_4.9.2-Linux-x86_64.sh -O miniconda.sh && \
131118
mkdir -p /opt && \
132119
sh miniconda.sh -b -p /opt/conda && \
@@ -261,7 +248,7 @@ RUN /opt/conda/bin/python3 -m pip install --no-cache-dir \
261248
python-language-server[all]
262249

263250
# Copy Backend.Ai multi-node support
264-
COPY runner-scripts/bootstrap.sh /opt/container/
251+
COPY ./runner-scripts/bootstrap.sh /opt/container/
265252
COPY ./service-defs /etc/backend.ai/service-defs
266253
RUN echo "source /opt/espnet/tools/activate_python.sh" >> /etc/profile && \
267254
chmod +x /opt/espnet/tools/activate_python.sh && \
@@ -285,6 +272,5 @@ LABEL ai.backend.kernelspec="1" \
285272
ai.backend.runtime-path="/opt/conda/bin/python3" \
286273
ai.backend.service-ports="ipython:pty:3000,jupyter:http:8081,jupyterlab:http:8090,vscode:http:8180,tensorboard:http:6006"
287274

288-
289275
WORKDIR /home/work
290276
# vim: ft=dockerfile

0 commit comments

Comments
 (0)