feat: basic dockerfile added for server
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user