From a4aa1dce9912cf0b1554f382298b43effd2ed963 Mon Sep 17 00:00:00 2001 From: alisa Date: Thu, 16 May 2024 16:58:24 +0800 Subject: [PATCH] fix: use ASP.NET Core runtime for Docker image --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dc9574a..3e758eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,14 @@ WORKDIR /build RUN dotnet publish -c Release -o ./app -FROM mcr.microsoft.com/dotnet/runtime:8.0 +FROM mcr.microsoft.com/dotnet/aspnet:8.0 COPY --from=build /build/app /app WORKDIR /app +ENV ASPNETCORE_URLS=http://+:5000 + +EXPOSE 5000 + ENTRYPOINT ["dotnet", "NibiruConnector.dll"]