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