-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
34 lines (22 loc) · 1.07 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
FROM python:3.8-slim
# Updating Ubuntu
RUN apt-get update && yes | apt-get upgrade
# Adding gcc
RUN apt-get install -y git gcc
RUN pip install ipython jupyter
RUN pip install scipy numpy pandas matplotlib pylatexenc sklearn
RUN pip install qiskit qiskit[finance] qiskit[machine-learning]
RUN pip install pennylane
COPY Test.ipynb /notebooks/
# Configuring access to Jupyter
WORKDIR /notebooks/
RUN git clone https://gitlab.com/qworld/bronze-qiskit.git
# RUN git clone ....
RUN jupyter notebook --generate-config --allow-root
RUN echo "c.NotebookApp.password = u'sha1:6a3f528eec40:6e896b6e4828f525a6e20e5411cd1c8075d68619'" >> /root/.jupyter/jupyter_notebook_config.py
# Jupyter listens port: 8888
EXPOSE 8888
# Run Jupyter notebook as Docker main process - root
#CMD ["jupyter", "notebook", "--allow-root", "--notebook-dir=/notebooks", "--ip='*'", "--port=8888", "--no-browser"]
# Run Jupyter notebook without password - not recomended !!!
CMD ["jupyter", "notebook", "--allow-root", "--notebook-dir=/notebooks", "--ip='*'", "--port=8888", "--no-browser", "--NotebookApp.token=''"]