-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminimal-jupyter.Dockerfile
39 lines (34 loc) · 1.21 KB
/
minimal-jupyter.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
# syntax=docker/dockerfile:1
FROM quay.io/jupyter/minimal-notebook
LABEL org.opencontainers.image.source=https://github.com/Dpbm/qiskit-metal-docker
ENV LANG en_US.utf8
ENV TZ="America/New_York"
ENV XDG_RUNTIME_DIR /tmp/runtime-metal
USER root
RUN groupadd -r metal && useradd -r -g metal metal
RUN apt update && \
apt upgrade -y && \
apt install -y build-essential \
libgl1-mesa-glx \
libglu1-mesa \
libxcursor-dev \
libxft2 \
libxinerama1 \
libexpat1
USER metal
ENV HOME /home/metal
ENV PATH "${HOME}/.local/bin:$PATH"
WORKDIR ${HOME}
RUN mkdir -p ${HOME}/projects
RUN git clone https://github.com/Qiskit/qiskit-metal.git
WORKDIR ${HOME}/qiskit-metal
RUN conda env create -n metal -f environment.yml &&\
source activate metal && \
python -m pip install --no-deps -e . && \
ipython kernel install --user --name=metal
USER metal
WORKDIR ${HOME}/projects
RUN git clone https://github.com/qiskit-community/intro-to-quantum-computing-and-quantum-hardware/ && \
mv ${HOME}/qiskit-metal/tutorials ${HOME}/projects
CMD ["conda", "run", "-n", "metal", "jupyter", "lab", "--debug", "--ip", "0.0.0.0", "--port", "8888", "--no-browser", "--allow-root", "--NotebookApp.token=''"]
EXPOSE 8888