Skip to content

Commit aecf6d9

Browse files
fix(Dockerfile): update exposed ports and add env variable
Removed EXPOSE directive for port 8081, leaving only port 8080 exposed. Added ASPNETCORE_HTTP_PORTS environment variable set to 8080 to ensure the application listens on the correct port. This change simplifies port configuration and aligns runtime behavior with the Dockerfile.
1 parent 4c55166 commit aecf6d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

AniWorldReminder_API/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS base
55
USER $APP_UID
66
WORKDIR /app
7-
EXPOSE 8080
8-
EXPOSE 8081
97

8+
ENV ASPNETCORE_HTTP_PORTS=8080
109

1110
# Diese Stufe wird zum Erstellen des Dienstprojekts verwendet.
1211
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build

0 commit comments

Comments
 (0)