[GH-ISSUE #4952] Modify .dockerignore to optimize Docker image build #49640

Closed
opened 2026-04-28 12:27:58 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Gabrielfernandes7 on GitHub (Jun 9, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4952

To optimize the Docker image build and ensure unnecessary files are not included, it is important to add a .dockerignore file to the repository.

Originally created by @Gabrielfernandes7 on GitHub (Jun 9, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4952 To optimize the Docker image build and ensure unnecessary files are not included, it is important to add a `.dockerignore` file to the repository.
GiteaMirror added the feature request label 2026-04-28 12:27:58 -05:00
Author
Owner

@jmorganca commented on GitHub (Jun 9, 2024):

Hi @Gabrielfernandes7 is there a large file that is unnecessarily being sent to the build context? If so feel free to create a PR that prunes it!

<!-- gh-comment-id:2156701133 --> @jmorganca commented on GitHub (Jun 9, 2024): Hi @Gabrielfernandes7 is there a large file that is unnecessarily being sent to the build context? If so feel free to create a PR that prunes it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#49640