server init
This commit is contained in:
1 parent
893155b53d
commit
e7be495f7f
14 files changed
+213
-6
No files matched your search
@@ -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"]
|
||||
Reference in new issue
Block a user