Simple Caddy Docker build, using go modules for plugins.
4.4K
Simple Caddy Docker build, using go modules for plugins.
The existing caddy-builder project is good for a quick start, but can be non deterministic as plugins and dependencies are not strictly versioned, leading to flakey builds.
This is a simpler more direct approach - to use the image, simply use this as your FROM in your web projects Dockerfile, copy in your Caddyfile(s) to /etc, your web files to /srv and adjust the CMD with caddy args as needed.
To customize your own Caddy build:
go get -u to update go.sum as neededapk add command for any other system dependencies neededdocker build . to testContent type
Image
Digest
Size
14.6 MB
Last updated
about 7 years ago
docker pull civicactions/caddy-docker-build