forked from WwZzz/easyFL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (25 loc) · 1.3 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
27
28
29
#choose a fitfal version of pytorch image according to your cuda and modify the arguement TORCH_VERSION
#Reference website:https://hub.docker.com/r/pytorch/pytorch/tags
ARG TORCH_VERSION=1.9.0-cuda10.2-cudnn7-runtime
FROM pytorch/pytorch:${TORCH_VERSION}
# update & configure cuda and pip
RUN pip install --upgrade pip \
& conda update -n base -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge conda \
& conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ \
& conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/ \
& conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ \
& conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge \
& conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ \
& conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ \
& conda config --set show_channel_urls yes
#download requirements
RUN pip install cvxopt \
& conda install scipy \
& pip install matplotlib \
& pip install prettytable \
& pip install ujson \
& pip install pyyaml \
& pip install pynvml \
& pip install pandas
#install flgo
RUN pip install flgo