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
All checks were successful
Building and publishing Homebrewery as Docker Image / build (release) Successful in 11m51s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user