From acba678a735e50fb5c3a4a7cf943c27daf06da84 Mon Sep 17 00:00:00 2001 From: Arthur Wang Date: Thu, 18 Jul 2024 20:22:04 -0400 Subject: [PATCH] Load config file from persistent storage if present --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dec0199..2fe90e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -108,7 +108,7 @@ RUN set -xe \ && NODE_OPTIONS=--openssl-legacy-provider npm run build \ # Create directories && mkdir -p /var/www/files /run/apache2 \ - && cp config.TEMPLATE.inc.php config.inc.php \ + && if test -f /home/config.inc.php; then cp /home/config.inc.php config.inc.php; else cp config.TEMPLATE.inc.php config.inc.php fi\ && chown -R apache:apache /var/www/* \ # Prepare freefont for captcha && ln -s /usr/share/fonts/TTF/FreeSerif.ttf /usr/share/fonts/FreeSerif.ttf \