nginx setup
This commit is contained in:
1 parent
87ff6d072b
commit
579292460a
7 files changed
+62
-21
No files matched your search
+3
-3
@@ -1,5 +1,5 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
|
||||
WORKDIR /App
|
||||
WORKDIR /Server
|
||||
|
||||
# stops restore during build
|
||||
COPY Server.csproj ./
|
||||
@@ -10,6 +10,6 @@ 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 .
|
||||
WORKDIR /Server
|
||||
COPY --from=build-env /Server/out .
|
||||
ENTRYPOINT ["dotnet", "Server.dll"]
|
||||
Reference in new issue
Block a user