Circle 2.0 build Dockerfile fails at COPY step

docker
2.0

#1

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? https://circleci.com/docs/2.0/building-docker-images/#mounting-folders


#2

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.


#3

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


#4

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