-
Notifications
You must be signed in to change notification settings - Fork 88
/
Dockerfile
65 lines (59 loc) · 1.8 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
unzip \
curl \
wget \
vim \
tmux \
htop \
less \
locate \
ca-certificates \
libsm6 \
libxext6 \
libxrender1 &&\
rm -rf /var/lib/apt/lists/*
RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh && \
chmod +x ~/miniconda.sh && \
~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh
ENV PATH=/opt/conda/bin:$PATH \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8
RUN pip install -U \
tqdm \
click \
logzero \
gensim \
optuna \
tensorboardX \
scikit-image \
lockfile \
pytest \
Cython \
pyyaml \
jupyter \
jupyterthemes \
kaggle \
opencv-python \
joblib \
seaborn \
pretrainedmodels \
plotly \
albumentations \
line-profiler \
tabulate \
easydict \
cloudpickle==0.5.6 # to suppress warning
RUN conda install -y pytorch torchvision cudatoolkit=10.0 -c pytorch && \
conda install -y pandas scikit-learn matplotlib pytables tensorflow-gpu keras && \
conda install -c conda-forge jupyter_contrib_nbextensions lightgbm && \
conda install faiss-gpu cudatoolkit=10.0 -c pytorch # For CUDA10
RUN conda clean --all
RUN jupyter contrib nbextension install --user
RUN jt -t grade3 -f firacode -nf firacode -altp -fs 100 -tfs 100 -nfs 100 -dfs 100 -ofs 100 -cellw 88% -T
RUN ipython profile create &&
echo "c = get_config(); c.IPCompleter.use_jedi = False" >> ~/.ipython/profile_default/ipython_config.py