This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-09-10 09:26:35 +00:00
|
|
|
FROM caddy:2.4.5-builder AS caddy-builder
|
2020-06-22 09:54:01 +00:00
|
|
|
|
2020-09-28 08:24:14 +00:00
|
|
|
# available dns resolvers: https://github.com/caddy-dns
|
|
|
|
RUN xcaddy build --with github.com/caddy-dns/route53
|
2020-06-22 09:54:01 +00:00
|
|
|
|
2021-09-10 09:26:35 +00:00
|
|
|
FROM caddy:2.4.5-builder
|
2020-06-22 09:54:01 +00:00
|
|
|
|
|
|
|
COPY --from=caddy-builder /usr/bin/caddy /usr/bin/caddy
|
2021-08-27 12:15:22 +00:00
|
|
|
|
|
|
|
# bash required for mo to work (mo is mustache templating engine - https://github.com/tests-always-included/mo)
|
|
|
|
RUN apk add --no-cache bash
|
|
|
|
|
|
|
|
COPY caddy.json.template mo /etc/caddy/
|
|
|
|
|
|
|
|
CMD [ "sh", "-c", \
|
|
|
|
"/etc/caddy/mo < /etc/caddy/caddy.json.template > /etc/caddy/caddy.json ; \
|
|
|
|
caddy run --config /etc/caddy/caddy.json" \
|
|
|
|
]
|