harishaseebat92 commited on
Commit
67de6a2
·
1 Parent(s): 23ace52

Corrected Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -27
Dockerfile CHANGED
@@ -47,40 +47,22 @@ COPY docker/nginx.conf /etc/nginx/nginx.conf
47
 
48
  # ---------------------------------------------------------------------------
49
  # Create the 'aqc_venv' and install dependencies
50
- # Pin exact versions to match local environment and prevent version conflicts
51
  # ---------------------------------------------------------------------------
52
  RUN python3 -m venv utils/aqc_venv && \
53
  # 1. Upgrade pip inside the new venv
54
  utils/aqc_venv/bin/pip install --upgrade pip setuptools wheel && \
55
- # 2. Install exact dependency versions BEFORE research libraries
56
- utils/aqc_venv/bin/pip install \
57
- "qiskit==1.3.1" \
58
- "qiskit-aer==0.16.4" \
59
- "qiskit-algorithms==0.4.0" \
60
- "qiskit-qasm3-import==0.6.0" \
61
- "numpy==1.26.4" \
62
- "scipy==1.16.3" \
63
- "sympy==1.14.0" \
64
- "symengine==0.13.0" \
65
- "openfermion==1.7.1" \
66
- "cirq-core==1.6.1" \
67
- "physics-tenpy==1.0.7" \
68
- "h5py==3.15.1" \
69
- "lmfit==1.3.4" \
70
- "matplotlib==3.10.7" \
71
- "pandas==2.3.3" \
72
- "scikit-learn==1.8.0" \
73
- "tqdm==4.67.1" && \
74
- # 3. Clone aqc-research inside utils
75
  cd utils && \
76
  git clone https://github.com/bjader/aqc-research.git && \
77
- # 4. Install aqc-research (--no-deps to prevent version changes)
78
- ../utils/aqc_venv/bin/pip install --no-deps ./aqc-research && \
79
- # 5. Install adapt-aqc (editable mode, --no-deps to preserve versions)
80
- ../utils/aqc_venv/bin/pip install --no-deps -e ./adapt-aqc && \
81
- # 6. VERIFY: Print versions to confirm correct installation
 
 
82
  echo "=== Verifying aqc_venv installation ===" && \
83
- /home/user/app/utils/aqc_venv/bin/pip list | grep -i qiskit && \
84
  /home/user/app/utils/aqc_venv/bin/python --version
85
 
86
  # Prepare writable directories for nginx (running as non-root later)
 
47
 
48
  # ---------------------------------------------------------------------------
49
  # Create the 'aqc_venv' and install dependencies
 
50
  # ---------------------------------------------------------------------------
51
  RUN python3 -m venv utils/aqc_venv && \
52
  # 1. Upgrade pip inside the new venv
53
  utils/aqc_venv/bin/pip install --upgrade pip setuptools wheel && \
54
+ # 2. Clone aqc-research inside utils
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  cd utils && \
56
  git clone https://github.com/bjader/aqc-research.git && \
57
+ # 3. Install aqc-research into the venv
58
+ ../utils/aqc_venv/bin/pip install ./aqc-research && \
59
+ # 4. Install adapt-aqc (editable mode) into the venv
60
+ ../utils/aqc_venv/bin/pip install -e ./adapt-aqc && \
61
+ # 5. Install qiskit_qasm3_import for QASM3 parsing
62
+ ../utils/aqc_venv/bin/pip install qiskit_qasm3_import && \
63
+ # 6. VERIFY: Print the Python path to confirm it exists
64
  echo "=== Verifying aqc_venv installation ===" && \
65
+ ls -la /home/user/app/utils/aqc_venv/bin/ && \
66
  /home/user/app/utils/aqc_venv/bin/python --version
67
 
68
  # Prepare writable directories for nginx (running as non-root later)