server init

This commit is contained in:
ntr committed 2023-08-23 12:56:28 +10:00
1 parent 893155b53d
commit e7be495f7f
14 files changed
+213 -6

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
WORKDIR /App
# stops restore during build
COPY Server.csproj ./
RUN dotnet restore
COPY . ./
RUN dotnet publish -c Release -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:7.0
WORKDIR /App
COPY --from=build-env /App/out .
ENTRYPOINT ["dotnet", "DotNet.Docker.dll"]