From b180e25232ba4fd943c5eb5ff6ca0a1d70ee7e16 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 2 Jul 2023 09:05:52 +0200 Subject: Use fly proxy for TLS termination, using h2c --- Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index bf01304..ca10c88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,18 @@ -FROM docker.io/caddy:2-alpine +ARG VERSION=2.6 +ARG VARIANT=alpine + +FROM docker.io/caddy:${VERSION}-builder-${VARIANT} AS builder + +RUN xcaddy build \ + --with github.com/gamalan/caddy-tlsredis + +FROM docker.io/caddy:${VERSION}-${VARIANT} + +COPY --from=builder /usr/bin/caddy /usr/bin/caddy COPY Caddyfile /etc/caddy/ COPY public /srv EXPOSE 9091/tcp -EXPOSE 8080/tcp ENV SITE_ROOT=/srv -- cgit 1.4.1