Circle 2.0 build Dockerfile fails at COPY step



I see the following:

lstat vendor/vendor.json: no such file or directory

I’m assuming this is because when I “checkout”, it does so on the main container, and so I can’t copy files from that checkout since the docker build is running on a different container.

How do I get around this?

I saw the documentation for docker run but what about with docker build?


If you’re building a Docker image, I’d use the machine executor instead as to not run into these sort of limitations with the docker executor.


Maybe if the startup time comes down :confused: it’s a little too long atm.


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.