Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: Shallow clone repo #230

Merged
merged 1 commit into from
May 29, 2020
Merged

Docker: Shallow clone repo #230

merged 1 commit into from
May 29, 2020

Conversation

SuperSandro2000
Copy link
Contributor

This reduces the final repo size by 20MB by not cloning the entire git history. In the future the saving should get bigger.

docker images | grep weserv
weserver-after                              latest              28890e4580b6        30 seconds ago      1.2GB
weserver-before                             latest              e205949007a7        2 minutes ago       1.22GB

@codecov
Copy link

codecov bot commented May 24, 2020

Codecov Report

Merging #230 into 5.x will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               5.x      #230   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           57        57           
  Lines         1598      1598           
=========================================
  Hits          1598      1598           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d4dc15...e684ead. Read the comment docs.

Copy link
Member

@kleisauke kleisauke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It's always a pleasure to see the Dockerfile being improved.

@kleisauke kleisauke merged commit e18c30f into weserv:5.x May 29, 2020
@SuperSandro2000 SuperSandro2000 deleted the shallow-clone branch May 29, 2020 11:32
@SuperSandro2000 SuperSandro2000 restored the shallow-clone branch May 29, 2020 11:32
@SuperSandro2000 SuperSandro2000 deleted the shallow-clone branch May 29, 2020 11:32
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