From 2d635ac0e7045663e22df1d4183ae4348f01d527 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 7 Jul 2023 20:14:19 +0200 Subject: Enable Caddyfile to validate without redis Validation tries to connect to the redis server by the `storage` global option, which is not possible without secrets that are not exposed during the build --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index a963128..72dc719 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,9 @@ COPY public /srv EXPOSE 9091/tcp ENV SITE_ROOT=/srv + +RUN mkdir /etc/caddy/globals/ +RUN touch /etc/caddy/globals/dummy RUN ["/usr/bin/caddy", "validate", "--config", "/etc/caddy/Caddyfile"] + +COPY redis.Caddyfile /etc/caddy/globals/redis -- cgit 1.4.1