-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Optimize Docker build #2464
Comments
@TriplEight sorry to add you to a bunch of things, but maybe you can take a look at this one too? |
@chevdor could you specify which docker build do you mean: |
I was referring to https://github.com/paritytech/substrate/blob/master/Dockerfile |
@chevdor And this image https://github.com/paritytech/substrate/blob/master/scripts/docker/Dockerfile is used for publishing Substrate's binary. I'm not aware if the Dockerfile you are talking about is being used anywhere, please tell me if it is. |
@chevdor @TriplEight could we close this issue now that #13472 has been merged (where we used |
Nicely done @ltfschoen, I see no problem closing this issue now so I will just do that, @TriplEight feel free to reopen if you see something missing. |
Currently, .dockerignore does not exclude
.git
.AFAIK, the
.git
folder is only required by./scripts/build.sh
to figure out what is the root folder.Finding another way to identify the root folder (currently PROJECT_ROOT=
git rev-parse --show-toplevel
) allows to exclude the .git folder and avoid what is currently the copy of around 800+MB to the first stage image.The text was updated successfully, but these errors were encountered: