FROM caddy:2.11.2-alpine # The image keeps Caddy's own state under /data, which here is the web root # and gets rsynced with --delete; keep it out of the way instead. ENV XDG_DATA_HOME=/var/lib/caddy COPY Caddyfile /etc/caddy/Caddyfile