Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker build 报错 #20

Open
test0103 opened this issue May 2, 2020 · 2 comments
Open

docker build 报错 #20

test0103 opened this issue May 2, 2020 · 2 comments

Comments

@test0103
Copy link

test0103 commented May 2, 2020

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
Copy link

eduardofcgo commented May 20, 2020

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants