Added Docker to server

This commit is contained in:
2025-07-12 21:48:40 +02:00
parent 58b40fac84
commit dd85ea5e29
3 changed files with 54 additions and 1 deletions

12
src/Server/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /build
COPY . .
RUN dotnet restore ./Server.csproj
RUN dotnet publish ./Server.csproj -c Release -o /output
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
WORKDIR /app
COPY --from=build /output .
ENV ASPNETCORE_ENVIRONMENT Docker
EXPOSE 5146
ENTRYPOINT [ "./Server" ]