forked from Qiskit-Partners/qiskit-runtime
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
29 lines (22 loc) · 756 Bytes
/
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
FROM python:3.8-slim
RUN apt-get update \
&& apt-get -y install --reinstall \
build-essential python3-dev libopenblas-dev \
git wget \
redis-server \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
RUN pip install qiskit matplotlib
RUN pip install $(pip freeze 2>/dev/null| grep aqua | sed -e 's/==/[torch,pyscf]==/')
RUN pip install https://github.com/rpmuller/pyquante2/archive/master.zip
RUN pip install cvxopt
RUN mkdir /qiskit-runtime
RUN mkdir /qiskit-runtime/logs
WORKDIR /qiskit-runtime
COPY ./requirements.txt .
RUN pip install -r requirements.txt
COPY ./requirements-server.txt .
RUN pip install -r requirements-server.txt
EXPOSE 8000
COPY ./scripts/start-test-server.sh .
CMD NUM_WORKERS=2 bash start-test-server.sh