Exposed ports on dockerfile #11

Merged
khwezi merged 1 commits from test into main 2026-03-03 17:41:07 +02:00
Showing only changes of commit bcffc53708 - Show all commits

View File

@@ -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/"]