forked from NetEase-FuXi/EET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
c_env.dockerfile
40 lines (28 loc) · 1.14 KB
/
c_env.dockerfile
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
FROM nvcr.io/nvidia/cuda:11.0-cudnn8-devel-ubuntu18.04
LABEL maintainer="eet 2021"
#COPY sources.list /etc/apt/sources.list
# If you get an error executing apt-get update, you can try executing this command, and if it doesn't report an error, you can remove this line
RUN rm -rf /etc/apt/sources.list.d/cuda.list
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
cmake \
vim \
git
RUN apt-get install -y \
openssh-server
RUN apt-get install -y \
python-dev \
python3.7-dev
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
RUN apt-get install -y python3-pip
RUN pip3 install --upgrade pip
RUN ln -sf /usr/bin/python3.7 /usr/bin/python
RUN ln -sf /usr/bin/pip3.7 /usr/bin/pip
RUN wget https://github.com/Kitware/CMake/releases/download/v3.17.2/cmake-3.17.2-Linux-x86_64.sh \
-q -O /tmp/cmake-install.sh \
&& chmod u+x /tmp/cmake-install.sh \
&& mkdir -p /workspace/bin/cmake \
&& /tmp/cmake-install.sh --skip-license --prefix=/workspace/bin/cmake \
&& rm /tmp/cmake-install.sh
ENV PATH="/workspace/bin/cmake/bin:${PATH}"