How to ADD all files/directories except a hidden directory like .git in Dockerfile February 19, 2023 by Tarik You may exclude unwanted files with the help of the .dockerignore file