Docker build does not build or very slow
When you’re running a docker build
command and it takes forever to build, you might have to check for the context
of your buildfile. The legacy
docker build sends all information to the docker daemon include the content of the folder where the Dockerfile
resides in. When using docker-compose
you can fix this by using a separated folder for the Dockerfile
to avoid unnecessary files to be transferred. There is also a ignore file for this the dockerignore-file
.
so far, akendo
Source: