Docker image WORKDIR


#1

I’m using a predefined circleci image (circleci/php:7.0-cli-node) but I can’t manage to get the working dir.
I can’t find any Dockerfile on github, so I’m trying with some wild guesses.
I tried to configure working_directory: ~ and I got “no working_directory” error, I tried working_directory: / and I got "Directory (/) you are trying to checkout to is not empty and not git repository"
What is the correct value for working_directory? Is there a way to get the Dockerfile somewhere?
TIA


#2

This confused me in 2.0 as well, see https://github.com/circleci/circleci-docs/issues/1276. This was “fixed” in https://github.com/circleci/circleci-docs/pull/1278/commits/0d35e7ffff28ee723c16579913e79b628a1847f3 (if you can make sense of this please let me know!)


#3

So, what is the root directory of my project? :confused:


#4

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