Change directory command in Docker?
问题 In docker I want to do this: git clone XYZ cd XYZ make XYZ However because there is no cd command, I have to pass in the full path everytime (make XYZ /fullpath). Any good solutions for this? 回答1: You can run a script, or a more complex parameter to the RUN. Here is an example from a Dockerfile I've downloaded to look at previously: RUN cd /opt && unzip treeio.zip && mv treeio-master treeio && \ rm -f treeio.zip && cd treeio && pip install -r requirements.pip Because of the use of '&&', it