...
Dockerfile
docker/build.sh
...
主要讲的就是 这样 2个文件
docker build -t apps/apps .
执行后会有一下错误
Step 8 : RUN docker/build.sh
---> Running in 019abf9e5ec8
/bin/sh: docker/build.sh: not found
The command '/bin/sh -c docker/build.sh' returned a non-zero code: 127
COPY . /app/apps/
WORKDIR /app/apps/
RUN ./docker/build.sh
明明当前项目下 有这个 文件 ,为何提示没有找到呢 。
PHPz2017-04-25 09:05:34
There is a logical error in your operation. You have not understood the concept of directories inside the container and the host. It is recommended that you execute sleep 1000 in the last step, and then open a separate terminal and enter the container to see whether your COPY step actually adds the host directory to the container.