fix: only parse expose in dockerfiles if ports_exposes is empty

This commit is contained in:
Andras Bacsai 2023-10-02 09:08:33 +02:00
parent ed6af777a4
commit 41672f75d0

View File

@ -127,7 +127,7 @@ public function submit()
}
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;
}
}