api-platform / api-platform

🕸️ Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.
https://api-platform.com
MIT License
8.43k stars 953 forks source link

Review api/Dockerfile caddy image versions from 2 to greater than 2.5 #2385

Open jraller opened 1 year ago

jraller commented 1 year ago

In the 3.0.9 version api/Dockerfile the image specified for caddy is just "2" and this results in an issue where the two dunglas modules for mercure and vulcain require Caddy version 2.6.2 or greater, not 2.5.2 which was being installed when just "2" was specified. I made sure to perform a docker compose pull to check if that would get the 2.6.2 or greater version and it did not.

Changing the lines from FROM caddy:2-builder-alpine and FROM caddy:2-alpine to FROM caddy:2.6.4-builder-alpine and FROM caddy:2.6.4-alpine appears to have worked for me.

jraller commented 1 year ago

Checking the docker registry for caddy shows that caddy:2 should work as 2 is an alias currently to 2.6.4. So I have no idea where the 2.5.2 version I was getting was coming from.

dunglas commented 1 year ago

Try to update the caddy images: docker pull caddy:2

Alternatively, try to purge Docker's cache: docker system prune