feat: basic dockerfile added for server

This commit is contained in:
2025-06-16 23:27:09 +03:00
parent 997ac72c4e
commit 7cc3bb4d83
3 changed files with 501 additions and 3 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /App
COPY . ./
RUN apt update
RUN dotnet restore
RUN dotnet publish Platforms/Server -c Release -o out
FROM mcr.microsoft.com/dotnet/runtime:9.0
WORKDIR /App
COPY --from=build /App/out .
ENTRYPOINT ["dotnet", "Server.dll"]