about summary refs log tree commit diff stats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAlan Pearce2023-07-07 20:14:19 +0200
committerAlan Pearce2023-07-07 20:14:19 +0200
commit2d635ac0e7045663e22df1d4183ae4348f01d527 (patch)
tree30a7e5e68bd165febb4877fa7518398524e1a06c /Dockerfile
parent3885eb15f33e967dfa83981af58ccac7af62fe4b (diff)
downloadwebsite-2d635ac0e7045663e22df1d4183ae4348f01d527.tar.lz
website-2d635ac0e7045663e22df1d4183ae4348f01d527.tar.zst
website-2d635ac0e7045663e22df1d4183ae4348f01d527.zip
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
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 5 insertions, 0 deletions
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