forked from QuanEstimation/QuanEstimation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (30 loc) · 1.3 KB
/
Dockerfile
File metadata and controls
39 lines (30 loc) · 1.3 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
34
35
36
37
38
39
FROM python:3.13-slim
LABEL maintainer="QuanEstimation Group https://quanestimation.github.io/group/"
LABEL description="Docker image for QuanEstimation"
LABEL org.opencontainers.image.source="https://github.com/QuanEstimation/QuanEstimation"
ARG BUILD_DATE
ARG VERSION
ARG VCS_REF
LABEL org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.revision=$VCS_REF
ENV QuanEstimation_INSTALL_JULIA="y" \
PYTHON_JULIACALL_HANDLE_SIGNALS=yes \
QuanEstimation_JULIA_PATH="/root/.julia/environments/pyjuliapkg/pyjuliapkg/install/bin/julia" \
JULIA_NUM_THREADS=auto \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1
COPY . quanestimation
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gnupg build-essential ca-certificates \
&& \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
RUN pip install --no-cache-dir ./quanestimation
RUN pip install ipykernel && \
python -m ipykernel install --user --name python3 --display-name "Python3"
RUN python -c "import quanestimation; print('QuanEstimation installed successfully')"
RUN pip install jupyterlab numpy pandas matplotlib scikit-learn qutip
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root", "--no-browser"]