diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 50ff80772..7d5ad7964 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -45,7 +45,6 @@ jobs: - name: Build and push uses: docker/build-push-action@v3 with: - context: "{{ defaultContext }}:docker" push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/docker/dockerfile b/dockerfile similarity index 82% rename from docker/dockerfile rename to dockerfile index e54109b5f..8749b1695 100644 --- a/docker/dockerfile +++ b/dockerfile @@ -20,11 +20,15 @@ RUN pip install --upgrade pip && \ pip install --upgrade astropy && \ pip install --ignore-installed PyYAML -# Copy checked out package code to appropriate destination in image. -WORKDIR /root/graphnet +# Install GraphNeT and required dependencies. +# -- Via pip +#RUN pip install -r https://raw.githubusercontent.com/com/graphnet-team/graphnet/main/requirements/torch_${HARDWARE}.txt +#RUN pip install -e git+https://github.com/icecube/graphnet.git#egg=graphnet[develop,torch] + +# -- Using current source +WORKDIR /root/graphnet/ ADD . /root/graphnet/ -# Install GraphNeT and required dependencies. RUN pip install -r requirements/torch_${HARDWARE}.txt RUN pip install -e .[develop,torch] @@ -35,8 +39,5 @@ RUN echo 'alias python="python3"' >> ~/.bashrc RUN echo 'PS1="🐳 \[\033[38;2;86;138;242m\]graphnet@\h \[\033[0m\]❯ \[\033[0;34m\]\w \[\033[0m\]\$ "' >> ~/.bashrc RUN echo 'PS2="\[\033[38;5;236m\]❯\[\033[38;5;239m\]❯\[\033[0m\]❯ "' >> ~/.bashrc -# Enable colours in terminal. -#ENV TERM xterm-256color - # Default command for executing container. CMD [ "/bin/bash" ] \ No newline at end of file