From 94d95a939f2b9fe527640234098ee985f168ca11 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Fri, 5 May 2023 12:00:05 +0300 Subject: [PATCH] project: update Dockerfile --- Dockerfile | 7 ++++++- ELT/Program.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3eed3fc..1e3ecd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,11 @@ FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build WORKDIR /build COPY . . + +COPY ./NuGet.Config /nuget.config +COPY ./evoleasing_25.crt /etc/ssl/certs +RUN update-ca-certificates + RUN dotnet restore RUN dotnet publish -c Release -o /app # Stage 2 @@ -9,6 +14,6 @@ FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS final WORKDIR /app COPY --from=build /app . -EXPOSE 2121 +EXPOSE 5000 ENTRYPOINT ["dotnet", "ELT.dll"] \ No newline at end of file diff --git a/ELT/Program.cs b/ELT/Program.cs index 3790afb..5c9e134 100644 --- a/ELT/Program.cs +++ b/ELT/Program.cs @@ -16,7 +16,7 @@ namespace ELT .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup(); - webBuilder.UseKestrel(options => { options.ListenAnyIP(2121); }); + webBuilder.UseKestrel(options => { options.ListenAnyIP(5000); }); }); } }