ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:89847d76d242dea90ede05e9e1e13a1ff4400a65eafbe2d6e31e086c93893580 in / |
CMD ["/bin/bash"] |
RUN /bin/sh -c apt-get update && apt-get install -y python3-venv python3-pip && rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c python3 -m venv /opt/venv && /opt/venv/bin/pip install --upgrade pip && /opt/venv/bin/pip install networkx==2.8.8 pennylane==0.30.0 PyYAML==6.0 scikit_learn==1.2.0 torch==1.13.1 pexpect==4.8.0 jupyter PennyLane-Lightning==0.30.0 && /opt/venv/bin/jupyter notebook --generate-config --allow-root && echo "c.NotebookApp.ip = '0.0.0.0'" >> /root/.jupyter/jupyter_notebook_config.py && echo "c.NotebookApp.token = ''" >> /root/.jupyter/jupyter_notebook_config.py && echo "c.NotebookApp.password_required = False" >> /root/.jupyter/jupyter_notebook_config.py && echo "c.NotebookApp.allow_origin = '*'" >> /root/.jupyter/jupyter_notebook_config.py # buildkit |
ENV PATH=/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
WORKDIR /opt/qvc |
RUN /bin/sh -c mkdir configs datasets modules # buildkit |
COPY modules /opt/qvc/modules # buildkit |
COPY requirements.txt /opt/qvc # buildkit |
COPY launcher.py /opt/qvc # buildkit |
COPY radio_qvc.py /opt/qvc # buildkit |
RUN /bin/sh -c pip install -r /opt/qvc/requirements.txt # buildkit |
RUN /bin/sh -c apt update && apt install tmux -y # buildkit |
EXPOSE map[8888/tcp:{}] |
CMD ["/opt/venv/bin/jupyter" "notebook" "--ip=0.0.0.0" "--port=8888" "--allow-root" "--NotebookApp.token=''" "--NotebookApp.password_required=False" "--NotebookApp.allow_origin='*'"] |