From dc414f1b84acf0a9e8d45eaf7aa23b176f52de9c Mon Sep 17 00:00:00 2001 From: Andre Cobham Date: Thu, 4 Jun 2026 12:45:06 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20.env=20bake-in=20=E2=80=94=20use=20Coo?= =?UTF-8?q?lify=20env=20vars=20at=20runtime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 3 ++- Dockerfile | 1 - infra/entrypoint.sh | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.dockerignore b/.dockerignore index 5cabdc7..5f51686 100755 --- a/.dockerignore +++ b/.dockerignore @@ -7,7 +7,8 @@ __pycache__ *.pyc *.md *.txt -.env.example +.env +.env.* !robots.txt *.xml !sitemap.xml diff --git a/Dockerfile b/Dockerfile index ed6c80e..614eb7b 100755 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,6 @@ COPY robots.txt /var/www/html/robots.txt COPY sitemap.xml /var/www/html/sitemap.xml COPY 404.html /var/www/html/404.html COPY 500.html /var/www/html/500.html -COPY .env /var/www/html/.env RUN chown -R www-data:www-data /var/www/html diff --git a/infra/entrypoint.sh b/infra/entrypoint.sh index b20732c..e24ab27 100755 --- a/infra/entrypoint.sh +++ b/infra/entrypoint.sh @@ -1,8 +1,5 @@ #!/bin/sh set -e -if [ -f /var/www/html/.env ]; then - set -a; . /var/www/html/.env; set +a -fi if [ -z "$ALTCHA_HMAC_KEY" ]; then export ALTCHA_HMAC_KEY="$(openssl rand -hex 32)" echo "Generated ALTCHA_HMAC_KEY" >&2