Merge pull request #6873 from coollabsio/dockerfile-env-fix

Fix: Pure Dockerfile deployment failing due to missing .env file
This commit is contained in:
Andras Bacsai 2025-10-14 20:44:37 +02:00 committed by GitHub
commit 2692ef8a57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -491,6 +491,11 @@ private function deploy_simple_dockerfile()
$this->generate_build_env_variables();
$this->add_build_env_variables_to_dockerfile();
$this->build_image();
// Save runtime environment variables AFTER the build
// This overwrites the build-time .env with ALL variables (build-time + runtime)
$this->save_runtime_environment_variables();
$this->push_to_docker_registry();
$this->rolling_update();
}