An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
refactor: fix variable scope in docker entrypoint parsing
Andras Bacsaif3abc4a29f6c
diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.phpindex feee4536e5..4a0faaec16 100644--- a/bootstrap/helpers/docker.php+++ b/bootstrap/helpers/docker.php@@ -984,6 +984,7 @@ function convertDockerRunToCompose(?string $custom_docker_run_options = null)}}if ($option === '--entrypoint') {+ $value = null;// Match --entrypoint=value or --entrypoint value// Handle quoted strings with escaped quotes: --entrypoint "python -c \"print('hi')\""// Pattern matches: double-quoted (with escapes), single-quoted (with escapes), or unquoted values@@ -1007,7 +1008,7 @@ function convertDockerRunToCompose(?string $custom_docker_run_options = null)}}- if (isset($value) && trim($value) !== '') {+ if ($value && trim($value) !== '') {$options[$option][] = $value;$options[$option] = array_values(array_unique($options[$option]));}