nginx setup

This commit is contained in:
ntr committed 2023-08-24 15:20:08 +10:00
1 parent cc0a86820d
commit 1495ca49ea
7 files changed
+62 -21

No files matched your search

+3 -3
View File
@@ -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"]