Skip to content

Commit

Permalink
Specify port 80 in Dockerfile after .NET 8 upgrade (#657)
Browse files Browse the repository at this point in the history
#649
Connection to replicas fail after .NET 8 upgrade.
Assumed to be because of the following breaking change in .NET 8 images:

> The default ASP.NET Core port configured in .NET container images has been updated from port 80 to 8080.

Updated Dockerfile to specify port 80 using new environment variable ASPNETCORE_HTTP_PORTS

Co-authored-by: Jon Kjetil Øye <acn-joye@ai-dev.no>
  • Loading branch information
jonkjetiloye and Jon Kjetil Øye authored Dec 8, 2023
1 parent fd8c94f commit 45dd32c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ WORKDIR /app
# ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
# DOTNET_RUNNING_IN_CONTAINER=true
ENV ASPNETCORE_ENVIRONMENT = Development
ENV ASPNETCORE_HTTP_PORTS = 80
RUN apk add --no-cache icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib

COPY --from=generate-accessmanagement-backend /app_output .
Expand Down

0 comments on commit 45dd32c

Please sign in to comment.