forked from OpenMined/PySyft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 1 KB
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 1 KB
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 \
git \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
RUN 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
RUN mkdir PySyft
COPY syft/ /PySyft/syft/
COPY examples/ /PySyft/examples/
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
RUN jupyter notebook --generate-config
RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension && \
python3 -m ipykernel.kernelspec
RUN mkdir /notebooks
WORKDIR /notebooks
ENTRYPOINT ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--Notebook.open_browser=False", "--NotebookApp.token=''", "--allow-root"]