From 3f87bfd1e36c2b6e0f3b670a741c7b28c7ec3e28 Mon Sep 17 00:00:00 2001 From: Boris Ahrens Date: Thu, 22 Feb 2024 17:02:12 +0100 Subject: [PATCH] ASP.NET url as env --- src/MalwareSampleExchange.Console/Dockerfile | 2 ++ src/MalwareSampleExchange.Console/Program.cs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MalwareSampleExchange.Console/Dockerfile b/src/MalwareSampleExchange.Console/Dockerfile index f1c2acb..1f59edd 100644 --- a/src/MalwareSampleExchange.Console/Dockerfile +++ b/src/MalwareSampleExchange.Console/Dockerfile @@ -4,6 +4,8 @@ WORKDIR /data ENTRYPOINT dotnet /data/MalwareSampleExchange.Console.dll +ENV ASPNETCORE_URLS="http://0.0.0.0:8080" + LABEL org.opencontainers.image.title="Malware Sample Exchange (MSE) Image" \ org.opencontainers.image.description="Malware Sample Exchange (MSE)" \ org.opencontainers.image.url="https://github.com/GDATASoftwareAG/mse" \ diff --git a/src/MalwareSampleExchange.Console/Program.cs b/src/MalwareSampleExchange.Console/Program.cs index f04d1cf..545e50f 100644 --- a/src/MalwareSampleExchange.Console/Program.cs +++ b/src/MalwareSampleExchange.Console/Program.cs @@ -18,6 +18,5 @@ await Host.CreateDefaultBuilder(args) { builder.UseStartup(); builder.UseKestrel(); - builder.UseUrls("http://0.0.0.0:8080"); }) .RunConsoleAsync();