This is a time when you Docker size is BIG!
Then we need to see inside.
Start your CLI inside the Docker
It is important to skipentrypoint
that will sometimes break therun
if you not yet inject any environment.
Investigate space with command
to see the summary of the result
Then the hidden files
Here we have unnecessary .git
folder and also .vscode
too.
Now we can have some common mistake list:
.git
reposbuild
artifactIf you do some of this, size can be reduce by about 25% or even half.
Hope this helps
Cheers !