dockerfile run build.sh
怪我咯
怪我咯 2017-04-25 09:03:34
0
2
773

项目目录

...

Dockerfile
docker/build.sh

...

主要讲的就是 这样 2个文件

docker build

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

dockerfile 部分内容

COPY . /app/apps/
WORKDIR /app/apps/
RUN ./docker/build.sh

明明当前项目下 有这个 文件 ,为何提示没有找到呢 。

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
phpcn_u1582
COPY . /app/apps/
WORKDIR /app/apps/
RUN /docker/build.sh
PHPzhong

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template