Skip to content

Commit 0716153

Browse files
Liu233wmergify[bot]
authored andcommitted
build(backend): Fix exposed ports
The default port is changed and no longer 80. So we have to use env var to specify it. For OHunt with Host, we use ASPNETCORE_HTTP_PORTS . For backend we use the old WebHost, we use ASPNETCORE_URLS.
1 parent 742ae6a commit 0716153

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

backend/src/AcmStatisticsBackend.Web.Host/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ RUN apt-get update && apt-get install -y wait-for-it
2424
ENV WAIT_COMMAND true
2525
WORKDIR /app
2626
COPY --from=publish /app/publish .
27+
ENV ASPNETCORE_URLS=http://0.0.0.0:80
2728
CMD $WAIT_COMMAND && dotnet AcmStatisticsBackend.Web.Host.dll

ohunt/OHunt.Web/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ RUN apt-get update && apt-get install -y wait-for-it
2121
ENV WAIT_COMMAND true
2222
WORKDIR /app
2323
COPY --from=publish /app/publish .
24+
ENV ASPNETCORE_HTTP_PORTS 80
2425
CMD $WAIT_COMMAND && dotnet OHunt.Web.dll

0 commit comments

Comments
 (0)