v2rayDocker icon indicating copy to clipboard operation
v2rayDocker copied to clipboard

docker build 报错

Open test0103 opened this issue 5 years ago • 2 comments

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

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

test0103 avatar May 02 '20 11:05 test0103

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

eduardofcgo avatar May 20 '20 03:05 eduardofcgo

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.

sparsebase avatar Sep 16 '20 04:09 sparsebase