pengchujin / v2rayDocker

一键v2ray ws + tls 方便就完事了
835 stars 362 forks source link

docker build 报错 #20

Open test0103 opened 4 years ago

test0103 commented 4 years ago

starting stage: building caddy caddymain/run.go:39:2: ../caddyhttp/cache.go:2:10: invalid import path: "" error at 'building caddy' The command '/bin/sh -c VERSION=${version} PLUGINS=${plugins} ENABLE_TELEMETRY=false /bin/sh /usr/bin/builder.sh' returned a non-zero code: 1

有人遇见过吗?应该如何解决?

eduardofcgo commented 4 years ago

I don't know the exact reason for this error, but this project is using a very old version of caddy. Take a look at my fork here, which fixes this.

https://github.com/eduardofcbg/v2rayDocker/commit/910ddeaf3e93eb04d547f81462b4255bede87791#diff-3254677a7917c6c01f55212f86c57fbf

sparsebase commented 4 years ago

The abisoft/caddy docker has a plugin building problem, and it was discussed here: Temporary fix: check import_package before writing To work around it: in the Dockerfile delete most of the plugin and only leave cloudflare plugin, like this ARG plugins="cloudflare". We are not using other plugin anyway, but the cloudflare plugin is necessary if you want to use cloudflare cdn with Let's encrypt certificate.