Skip to content

Commit

Permalink
try build multi arch (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilopezluna authored Aug 17, 2024
1 parent ba5d9bd commit 1b526a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/actions/dockerize-ollama-models-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ runs:
id: meta
uses: docker/metadata-action@v5

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to DockerHub
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ inputs.docker_username }}
Expand All @@ -49,6 +52,7 @@ runs:
with:
context: ${{ github.workspace }}
file: Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ inputs.docker_username }}/${{ inputs.docker_repository }}:${{ inputs.docker_tag }}
build-args: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARG MODEL_TAG
WORKDIR /model

# Start the ollama serve service
RUN ollama serve & \
RUN ollama serve || true & \
# Wait for the service to be ready
until curl -s http://localhost:11434; do \
echo "Waiting for ollama serve to be ready..."; \
Expand Down

0 comments on commit 1b526a6

Please sign in to comment.