forked from OpenMined/PySyft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (27 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
27
28
29
30
31
32
33
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y python3.6 \
python3-pip \
build-essential \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install jupyter \
&& pip3 install http://download.pytorch.org/whl/cpu/torch-0.3.1-cp36-cp36m-linux_x86_64.whl \
&& pip3 install torchvision \
&& rm -r /root/.cache/pip \
&& mkdir PySyft \
&& mkdir PySyft/examples
COPY syft/ /PySyft/syft/
COPY requirements.txt /PySyft/requirements.txt
COPY setup.py /PySyft/setup.py
COPY README.md /PySyft/README.md
WORKDIR /PySyft
RUN python3 setup.py install \
&& jupyter notebook --generate-config \
&& jupyter nbextension enable --py --sys-prefix widgetsnbextension \
&& python3 -m ipykernel.kernelspec \
&& mkdir /notebooks \
&& apt-get -y purge python3-pip \
build-essential \
&& apt-get -y clean
WORKDIR /notebooks
ENTRYPOINT ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--Notebook.open_browser=False", "--NotebookApp.token=''", "--allow-root"]