Bake .env into build — env vars load from image at container start

This commit is contained in:
2026-06-04 14:36:34 +01:00
parent dc414f1b84
commit 433b77ee5d
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -1,5 +1,8 @@
#!/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