Refactor environment variable handling in Dockerfile and entrypoint.sh for consistency and clarity
All checks were successful
Building and publishing Homebrewery as Docker Image / build (release) Successful in 11m51s

This commit is contained in:
2025-06-25 21:08:49 +02:00
parent 9960e05315
commit 74a4557724
2 changed files with 9 additions and 8 deletions

View File

@@ -14,15 +14,15 @@ if [ ! -f "$CONFIG_FILE" ]; then
cat > "$CONFIG_FILE" <<EOF
{
"host": "${HB_HOST}",
"port": ${PORT},
"naturalCritURL": "${HB_NATURALCRIT_URL}",
"web_port": ${PORT},
"naturalcrit_url": "${HB_NATURALCRIT_URL}",
"secret": "${HB_SECRET}",
"enableV3": ${HB_ENABLE_V3:-false},
"enableThemes": ${HB_ENABLE_THEMES:-false},
"localEnvironments": "${HB_LOCAL_ENVIRONMENTS}",
"enable_v3": ${HB_ENABLE_V3:-true},
"enable_themes": ${HB_ENABLE_THEMES:-true},
"publicUrl": "${HB_PUBLIC_URL}",
"images": ${HB_IMAGES:-null},
"fonts": ${HB_FONTS:-null}
"mongodb_uri": "${HB_DB_URI}",
"hb_images": ${HB_IMAGES:-null},
"hb_fonts": ${HB_FONTS:-null}
}
EOF