From a84b2296915ed88abcc35d19e98ec396dbe56c68 Mon Sep 17 00:00:00 2001 From: Leendert de Borst <6917405+lanedirt@users.noreply.github.com> Date: Sun, 24 Nov 2024 18:53:48 +0100 Subject: [PATCH] Set default port to 80 in Dockerfile (#13) * Create publish-docker-images.yml * Update Dockerfile --- src/Mov2Gif.Client/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mov2Gif.Client/Dockerfile b/src/Mov2Gif.Client/Dockerfile index 77c9a62..0bd24e3 100644 --- a/src/Mov2Gif.Client/Dockerfile +++ b/src/Mov2Gif.Client/Dockerfile @@ -26,6 +26,11 @@ RUN apt-get update && \ rm -rf /var/lib/apt/lists/* COPY --from=build /app/publish . + +# Set ASP.NET Core environment variables +ENV ASPNETCORE_URLS=http://+:80 +ENV ASPNETCORE_ENVIRONMENT=Production + EXPOSE 80 ENTRYPOINT ["dotnet", "Mov2Gif.Client.dll"]