Skip to content

Refactor CI workflow to use Docker Bake for multi-architecture builds#10

Open
abhishekmitra16 wants to merge 2 commits into
alpine-docker:masterfrom
abhishekmitra16:feature/docker-bake
Open

Refactor CI workflow to use Docker Bake for multi-architecture builds#10
abhishekmitra16 wants to merge 2 commits into
alpine-docker:masterfrom
abhishekmitra16:feature/docker-bake

Conversation

@abhishekmitra16

Copy link
Copy Markdown

For Issue #7

@abhishekmitra16

Copy link
Copy Markdown
Author

This is also reducing the size to around ~60MB

@ozbillwang

ozbillwang commented Nov 22, 2025

Copy link
Copy Markdown
Contributor

Thanks for the PR.

but I didn't see the condition to copy different .so files for ARM64 and AMD64 in docker-bake.hcl can you confirm how it works?

@abhishekmitra16

Copy link
Copy Markdown
Author

I think you don't need it because it is already handled in the Dockerfile. During the multi-arch build the Dockerfile is automatically copying the neccessary files for both architechture.

COPY --from=ollama /usr/lib/ollama/libggml-cpu-* /usr/lib/ollama/
COPY --from=ollama /usr/lib/ollama/libggml-base.so /usr/lib/ollama/libggml-base.so

@abhishekmitra16

Copy link
Copy Markdown
Author

I think you don't need it because it is already handled in the Dockerfile. During the multi-arch build the Dockerfile is automatically copying the neccessary files for both architechture.

COPY --from=ollama /usr/lib/ollama/libggml-cpu-* /usr/lib/ollama/
COPY --from=ollama /usr/lib/ollama/libggml-base.so /usr/lib/ollama/libggml-base.so

@ozbillwang let me know if I am missing something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants