From bcffc537085691197f7d0201d549cc73ad6fa20c Mon Sep 17 00:00:00 2001 From: khwezi Date: Tue, 3 Mar 2026 17:40:42 +0200 Subject: [PATCH] Exposed ports on dockerfile --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 057693c..a084234 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,10 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src +# expose ports +ENV ASPNETCORE_HTTP_PORTS=8081 +EXPOSE 8081 + # 1. Copy the .sln and .csproj files first to restore dependencies # This makes builds faster by caching the 'restore' layer COPY ["SampleApi/SampleApi.csproj", "SampleApi/"] -- 2.47.3