Skip to content

Commit 0048152

Browse files
committed
build(dockerfile): add opinionated env
1 parent 005243d commit 0048152

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

Dockerfile

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,29 @@ FROM tensorflow/tensorflow:latest-jupyter
33
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
44
ENV PATH /opt/conda/bin:$PATH
55

6-
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
7-
libglib2.0-0 libxext6 libsm6 libxrender1 \
8-
git mercurial subversion
6+
RUN apt-get update --fix-missing && apt-get install -y wget
97

10-
RUN wget --quiet https://repo.anaconda.com/archive/Anaconda2-5.3.0-Linux-x86_64.sh -O ~/anaconda.sh && \
8+
# Install Anaconda
9+
RUN wget --quiet https://repo.anaconda.com/archive/Anaconda2-2019.10-Linux-x86_64.sh -O ~/anaconda.sh && \
1110
/bin/bash ~/anaconda.sh -b -p /opt/conda && \
1211
rm ~/anaconda.sh && \
1312
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
1413
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
1514
echo "conda activate base" >> ~/.bashrc
1615

17-
RUN conda install pytorch torchvision cudatoolkit=10.1 -c pytorch
18-
RUN conda install -c anaconda jupyter_core
16+
RUN conda install pytorch torchvision cpuonly -c pytorch
17+
18+
RUN apt-get install -y software-properties-common && \
19+
add-apt-repository universe && \
20+
apt-get update --fix-missing && \
21+
apt-get install -y tmux vim htop tmux zsh git zip unzip && \
22+
chsh -s $(which zsh)
23+
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
24+
RUN git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime && \
25+
sh ~/.vim_runtime/install_awesome_vimrc.sh
26+
# RUN conda install pytorch torchvision cudatoolkit=11.1 -c pytorch
27+
28+
RUN conda create -n pytorch python=3.6 pytorch=1.3
29+
RUN conda create -n tf python=3.6 tensorflow
30+
31+
EXPOSE 8888

0 commit comments

Comments
 (0)