-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (33 loc) · 1.66 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
FROM nvidia/cuda:9.0-devel
MAINTAINER Artur Kadurin <[email protected]>
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
libglib2.0-0 libxext6 libsm6 libxrender1 \
git mercurial subversion
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
wget --quiet https://repo.continuum.io/miniconda/Miniconda3-4.3.31-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh
RUN apt-get install -y curl grep sed dpkg
ENV PATH /opt/conda/bin:$PATH
RUN conda install pytorch torchvision cuda90 -c pytorch
RUN conda install ipython numpy pandas scikit-learn notebook matplotlib
RUN apt-get install -y vim tmux man htop
RUN pip install progressbar2
RUN conda install -y scikit-image
RUN jupyter notebook --generate-config --allow-root && \
echo "c.NotebookApp.ip = '*'" >> ~/.jupyter/jupyter_notebook_config.py && \
echo "c.NotebookApp.token = ''" >> ~/.jupyter/jupyter_notebook_config.py && \
echo "c.NotebookApp.password = ''" >> ~/.jupyter/jupyter_notebook_config.py && \
echo "c.NotebookApp.open_browser = False" >> ~/.jupyter/jupyter_notebook_config.py && \
echo "c.NotebookApp.allow_remote_access = True" >> ~/.jupyter/jupyter_notebook_config.py && \
echo "c.NotebookApp.port = 8765" >> ~/.jupyter/jupyter_notebook_config.py
EXPOSE 8765
WORKDIR /home/playground
CMD [ "/bin/bash" ]
COPY dataset.ipynb /home/playground/
COPY homework.ipynb /home/playground/
COPY pytorch.ipynb /home/playground/
COPY utils.py /home/playground/
COPY salt.py /home/playground/
ENTRYPOINT jupyter notebook --no-browser --allow-root --port 8765