Add Dockerfile
Some checks failed
Build and Test / build-image (push) Failing after 40s

This commit is contained in:
2025-12-31 06:47:07 +00:00
parent 8d0ae90c96
commit 7737d66daf

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
COPY . /app
WORKDIR /app
RUN dotnet publish Program.cs -c Release -o /app/published
FROM mcr.microsoft.com/dotnet/aspnet:10.0
WORKDIR /app
COPY --from=build /app/published .
CMD ["dotnet", "Program.dll"]