GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — qpp/docker/Dockerfile at main · softwareQinc/qpp Expand file tree/ Copy pathDockerfileMore file actions 52 lines (41 loc) · 1.8 KB / Copy pathDockerfileFile metadata and controls52 lines (41 loc) · 1.8 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 40 41 42 43 44 45 46 47 48 49 50 51 52 # Base image with minimal Python 3.13 environment FROM python:3.13-slim-trixie # Install system dependencies required for building Quantum++ and Python packages RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ cmake \ libeigen3-dev \ git \ vim \ && rm -rf /var/lib/apt/lists/* # Create non-root user for safer execution RUN useradd -m -c "softwareQ" sq # Set working directory WORKDIR /home/sq # Copy Python dependencies COPY --chown=sq:sq requirements.txt ./ # Switch to non-root user USER sq # Create virtual environment and install Python dependencies + pyqpp RUN python3 -m venv /home/sq/venv && \ /home/sq/venv/bin/pip install --no-cache-dir --upgrade pip && \ /home/sq/venv/bin/pip install --no-cache-dir -r requirements.txt && \ /home/sq/venv/bin/pip install --no-cache-dir jupyterlab-lsp "python-lsp-server[all]" && \ /home/sq/venv/bin/pip install --no-cache-dir git+https://github.com/softwareQinc/qpp # Clone Quantum++ source and build qpp_qasm example RUN git clone --depth 1 --branch main https://github.com/softwareQinc/qpp /home/sq/qpp && \ cmake -S /home/sq/qpp -B /home/sq/qpp/build && \ cmake --build /home/sq/qpp/build --target qpp_qasm # Install Quantum++ system-wide and expose qpp_qasm binary USER root RUN cmake --install /home/sq/qpp/build && \ cp /home/sq/qpp/build/examples/qpp_qasm /usr/local/bin/qpp_qasm # Clean build artifacts and prepare Jupyter workspace USER sq RUN rm -rf /home/sq/qpp/build && mkdir -p /home/sq/notebooks COPY --chown=sq:sq notebooks/ /home/sq/notebooks/ # Ensure virtual environment is used by default ENV PATH="/home/sq/venv/bin:$PATH" # Expose Jupyter port and launch notebook server EXPOSE 8888 CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--no-browser", "--notebook-dir=/home/sq/notebooks"] |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |