I need to use xcaddy to custom some modules. I tried to use a caddy docker image, which includes develop environmnent.
I used the same Caddyfile, I can run it using the docker image caddy:lastest, but the docker image caddy:builder and caddy:builder-alpine will stop.
2. Error messages and/or full log output:
sorry, docker logs ID shows nothing.
3. Caddy version:
the docker image → latest
the docker image → builder
No, I told docker-compose to use builder image.
I tried: image: caddy:latest, the docker can run image: caddy:builder, the docker well stop
Notice: I used the same Caddyfile, the only difference just is the image
No. You need to make a file named Dockerfile next to your compose.yml and then use build: . (the . means “this current directory”, i.e. look for the Dockerfile here). See Build from source — Caddy Documentation for how to write the Dockerfile.