Re: [PATCH compass-ci] container/openresty-proxy-cache: fix build error

git clone https://gitee.com/cuiyili/openresty.git || exit 1 docker build -t openresty:proxy_cache . -f openresty/Dockerfile
+rm -rf openresty
How about move the 'rm' step at the before of 'docker build'?
docker build need openrestry/Dockerfile, this file come from git clone https://gitee.com/cuiyili/openresty.git, you mean move before of git clone? it looks not make any difference. Thanks, Yinsi
-------- Thanks Yu Chuan
-- 2.23.0

On Wed, Feb 03, 2021 at 10:01:43AM +0800, Liu Yinsi wrote:
git clone https://gitee.com/cuiyili/openresty.git || exit 1 docker build -t openresty:proxy_cache . -f openresty/Dockerfile
+rm -rf openresty
How about move the 'rm' step at the before of 'docker build'?
docker build need openrestry/Dockerfile, this file come from git clone https://gitee.com/cuiyili/openresty.git, you mean move before of git clone? it looks not make any difference.
oh, i mean you can move it before git clone. because it seems that git clone need openresty not existed in current dir. -------- Thanks Yu Chuan
Thanks, Yinsi
-------- Thanks Yu Chuan
-- 2.23.0

On Wed, Feb 03, 2021 at 12:10:47PM +0800, Yu Chuan wrote:
On Wed, Feb 03, 2021 at 10:01:43AM +0800, Liu Yinsi wrote:
git clone https://gitee.com/cuiyili/openresty.git || exit 1 docker build -t openresty:proxy_cache . -f openresty/Dockerfile
+rm -rf openresty
How about move the 'rm' step at the before of 'docker build'?
docker build need openrestry/Dockerfile, this file come from git clone https://gitee.com/cuiyili/openresty.git, you mean move before of git clone? it looks not make any difference.
oh, i mean you can move it before git clone. because it seems that git clone need openresty not existed in current dir.
good Thanks, Yinsi
-------- Thanks Yu Chuan
Thanks, Yinsi
-------- Thanks Yu Chuan
-- 2.23.0
participants (2)
-
Liu Yinsi
-
Yu Chuan