[PR #110] [MERGED] Reduce image size by setting git clone depth #695

Closed
opened 2025-12-29 01:24:41 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sickcodes/Docker-OSX/pull/110
Author: @PeterDaveHello
Created: 12/15/2020
Status: Merged
Merged: 12/16/2020
Merged by: @sickcodes

Base: masterHead: git-clone-depth-1


📝 Commits (1)

  • 4b17459 Reduce image size by setting git clone depth

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 Dockerfile (+2 -2)

📄 Description

Reduce the git clone depth to 1 will make the image size smaller, for more than 100MB!

$ docker images
REPOSITORY                    TAG                 IMAGE ID            CREATED             SIZE
docker-osx-new                latest              35f286bfee15        1 minutes ago       3.32GB
docker-osx-old                latest              e476cc91939f        9 minutes ago       3.44GB

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sickcodes/Docker-OSX/pull/110 **Author:** [@PeterDaveHello](https://github.com/PeterDaveHello) **Created:** 12/15/2020 **Status:** ✅ Merged **Merged:** 12/16/2020 **Merged by:** [@sickcodes](https://github.com/sickcodes) **Base:** `master` ← **Head:** `git-clone-depth-1` --- ### 📝 Commits (1) - [`4b17459`](https://github.com/sickcodes/Docker-OSX/commit/4b17459897228bb252b5d3a9db09080df9f50763) Reduce image size by setting git clone depth ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+2 -2) </details> ### 📄 Description Reduce the `git clone` depth to 1 will make the image size smaller, for more than 100MB! ``` $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE docker-osx-new latest 35f286bfee15 1 minutes ago 3.32GB docker-osx-old latest e476cc91939f 9 minutes ago 3.44GB ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 01:24:41 +01:00
adam closed this issue 2025-12-29 01:24:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#695