Skip to content

Commit

Permalink
Merge pull request graphnet-team#399 from asogaard/update-docker
Browse files Browse the repository at this point in the history
Fix Docker image
  • Loading branch information
asogaard committed Jan 27, 2023
2 parents 0519bf8 + 00b11ce commit 192a592
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
13 changes: 7 additions & 6 deletions docker/dockerfile → dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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://github.com/raw/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]

Expand All @@ -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" ]

0 comments on commit 192a592

Please sign in to comment.