Initial: C# .NET 8 API + Dockerfile + Pipeline + K8s manifests

This commit is contained in:
2026-02-06 06:18:04 +00:00
parent 96afcf1c40
commit 49cef7098c
6 changed files with 136 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY *.csproj .
RUN dotnet restore
COPY . .
RUN dotnet publish -c Release -o /app
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app
COPY --from=build /app .
EXPOSE 5000
ENV ASPNETCORE_URLS=http://+:5000
ENTRYPOINT ["dotnet", "DemoApi.dll"]