Not gitingore, Dockerignore.
You should add there all the unnecessary files. Like .tmp, .git, node_modules and others.
Also I would recommend to take a look at this article to see how you could reduce docker image size even more:
Not gitingore, Dockerignore.
You should add there all the unnecessary files. Like .tmp, .git, node_modules and others.
Also I would recommend to take a look at this article to see how you could reduce docker image size even more: