bitpressio / docker-for-php-developers-errata

Reported errata for https://bitpress.io/docker-for-php-developers/
13 stars 0 forks source link

chapter 6 docker-compose build on Listing 6.24 failed #27

Open smartbos opened 4 years ago

smartbos commented 4 years ago

I tried docker-compose build but it's failed.

The message I got was

curl: (22) The requested URL returned error: 404

The URL requested was

https://caddyserver.com/download/linux/amd64?plugins=http.expires,http.realip&license=personal

When I hit that URL on web browser manually, it shows 404 error page. I think URL for downloading Caddy might be changed.

paulredmond commented 4 years ago

I am planning an overhaul for PHP 8 and will likely updated this to Caddy v2 going forward, but that's still a WIP.

Caddy removed or changed their public build URL for V1. You could reverse-engineer the V2 URL and update the Caddyfile to support Caddy v2. Otherwise, here's an example where I install Caddy v1 using multi-stage builds:

https://gist.github.com/paulredmond/1a6a59e546108538a8e032d8b20878f0