master
DoTheEvo 4 weeks ago
parent 2480fad2e2
commit e7f84872c5

@ -639,16 +639,20 @@ Inside create a file named `Dockerfile`.
`Dockerfile` `Dockerfile`
```Dockerfile ```Dockerfile
FROM caddy:2.6.2-builder AS builder FROM caddy:2.8.4-builder AS builder
RUN xcaddy build \ RUN xcaddy build \
--with github.com/caddy-dns/cloudflare --with github.com/caddy-dns/cloudflare
FROM caddy:2.6.2 FROM caddy:2.8.4
COPY --from=builder /usr/bin/caddy /usr/bin/caddy COPY --from=builder /usr/bin/caddy /usr/bin/caddy
``` ```
of note - if making changes in the Dockerfile after running,
use command `docker compose down --rmi local`
to remove localy built containers and force rebuild on the next compose up.
### - Edit docker-compose.yml ### - Edit docker-compose.yml
`image` replaced with `build` option pointing at the `Dockerfile` location<br> `image` replaced with `build` option pointing at the `Dockerfile` location<br>

Loading…
Cancel
Save