This docker build file is created in order to build caddy with the:
replace-response
,cloudflare
and,caddy-security
modules.
Download the file Dockerfile
to an empty directory and issue:
docker build -t TAG .
where:
TAG
represents a tag to set on the built image (ie: redis:latest
)
After caddy is built, a container can be created and ran either via docker run
or deployed within the swarm with docker stack deploy
.
Note that if the image is to be deployed to a swarm, then more than likely the image should be committed to a local registry serving the local docker swarm.
Unable to display file "http://svn.grimore.org/docker/build/caddy/Dockerfile": It may not exist, or permission may be denied.