Skip to content

Commit

Permalink
Merge pull request #8 from bioimage-io/dev
Browse files Browse the repository at this point in the history
Fixing the docker file build jjank
  • Loading branch information
ctr26 authored May 6, 2024
2 parents db5bddc + fa15742 commit 8635624
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
run: |
while IFS= read -r dir; do
if [[ -n "$dir" ]]; then
docker_context="./$dir"
dockerfile="./$dir/Dockerfile"
image_name=$(basename "$dir") # Extracts the name of the directory
docker build "$docker_context" -t ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest
docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest
docker build -f "$dockerfile" -t ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest
docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest .
# tag the image with the short SHA
docker tag ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:${{ env.SHORT_SHA }}
docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:${{ env.SHORT_SHA }}
Expand Down
6 changes: 4 additions & 2 deletions environments/bioengine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FROM ghcr.io/amun-ai/hypha:0.15.51

RUN pip install https://github.com/bioimage-io/bioengine/archive/refs/heads/main.zip
# WORKDIR /app
COPY . /app
RUN pip install -r /app/requirements.txt
RUN pip install /app

0 comments on commit 8635624

Please sign in to comment.