Change directory command in Docker?

后端 未结 3 1989
我在风中等你
我在风中等你 2020-12-04 10:23

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 everytim

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 10:54

    RUN git clone http://username:password@url/example.git
    WORKDIR /folder
    RUN make
    

提交回复
热议问题