From 41672f75d015416ceb562fa25a4ed9c8d30f55e3 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 2 Oct 2023 09:08:33 +0200 Subject: [PATCH] fix: only parse expose in dockerfiles if ports_exposes is empty --- app/Http/Livewire/Project/Application/General.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/Project/Application/General.php b/app/Http/Livewire/Project/Application/General.php index 6281f45dd..b9d65f504 100644 --- a/app/Http/Livewire/Project/Application/General.php +++ b/app/Http/Livewire/Project/Application/General.php @@ -127,7 +127,7 @@ class General extends Component } if (data_get($this->application, 'dockerfile')) { $port = get_port_from_dockerfile($this->application->dockerfile); - if ($port) { + if ($port && !$this->application->ports_exposes) { $this->application->ports_exposes = $port; } }