This commit is contained in:
Andras Bacsai 2023-06-08 10:29:44 +02:00
parent 63d268c77e
commit b3cdd7df3c
2 changed files with 10 additions and 2 deletions

View File

@ -177,9 +177,9 @@ private function build_image()
"echo -n 'Building image... '",
]);
if ($this->application->settings->is_static && isset($this->application->build_command)) {
if ($this->application->settings->is_static) {
$this->execute_now([
$this->execute_in_builder("docker build -f {$this->workdir}/Dockerfile {$this->build_args} --progress plain -t { $this->build_image_name {$this->workdir}"),
$this->execute_in_builder("docker build -f {$this->workdir}/Dockerfile {$this->build_args} --progress plain -t $this->build_image_name {$this->workdir}"),
], isDebuggable: true);
$dockerfile = "FROM {$this->application->static_image}

View File

@ -39,11 +39,19 @@ function getProxyConfiguration(Server $server)
"443:443",
"8080:8080",
],
"healthcheck" => [
"test" => "wget -qO- http://localhost:80/ping || exit 1",
"interval" => "4s",
"timeout" => "2s",
"retries" => 5,
],
"volumes" => [
"/var/run/docker.sock:/var/run/docker.sock:ro",
"{$proxy_path}:/traefik",
],
"command" => [
"--ping=true",
"--ping.entrypoint=http",
"--api.dashboard=true",
"--api.insecure=true",
"--entrypoints.http.address=:80",