-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The build and copy steps take an absurdly long time #30414
Comments
Also, I'm using NFS via |
The actual build is executed on the daemon. When doing a build, the "build context" is therefore sent to the daemon as a |
@thaJeztah If you can give me the commands to do it I'll get you what you need. I love docker and want to see if I can fix this for my team. |
@krainboltgreene just the size, and number of files that are in the directory that your |
|
Okay, so I did some spring cleaning and I'm down to 622MB, 420 of which are from If my project tree looks like this:
How do I ignore node modules in |
In your docker-compose you can specify the "context", so for If your source code doesn't change, repeated builds should be able to use the cache, but docker will always send the build-context (to verify if the source files changed) In addition, you can use a |
@thaJeztah I feel like I've tried to use |
Also, thanks a lot for the information. |
We've had |
Docker 17.07 will add an option to "incrementally" send the build-context, see #32677, #33786, and docker/cli#231, which may be helpful for various use cases |
Description
While building my containers with
docker-compose build
I'm encountering absurdly long build times. TheBuilding {{container}}
step takes upwards of 2 minutes and a simpleCOPY {{file}} {{file}}
can take upwards of 1 minute.Steps to reproduce the issue:
docker-compose build
Describe the results you received:
It took a long time on very simple operations.
Describe the results you expected:
It doesn't take a long time.
Additional information you deem important (e.g. issue happens only occasionally):
I'm building containers locally, on a Mac, via Docker Toolset.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: