forked from TL-System/plato
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (23 loc) · 1.01 KB
/
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
# Download base image from NVIDIA's Docker Hub
FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu20.04
LABEL maintainer="Baochun Li"
ADD ./.bashrc /root/
COPY ./requirements.txt /root/
WORKDIR /root/plato
RUN apt-get update \
&& apt-get install -y wget \
&& apt-get install -y vim \
&& apt-get install -y net-tools \
&& apt-get install -y git \
&& apt-get install -y libgmp-dev \
&& mkdir -p ~/miniconda3 \
&& wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh -O ~/miniconda3/miniconda.sh \
&& bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 \
&& rm -rf ~/miniconda3/miniconda.sh \
&& ~/miniconda3/bin/conda update -n base -c defaults conda \
&& ~/miniconda3/bin/conda init bash \
&& ~/miniconda3/bin/conda create -n plato python=3.9 \
&& ~/miniconda3/envs/plato/bin/pip install torch torchvision \
&& ~/miniconda3/envs/plato/bin/pip install -r ~/requirements.txt \
&& ~/miniconda3/envs/plato/bin/pip install plato-learn
RUN rm /root/requirements.txt