chore: use runtime as base, don't set UseAppHost=false

This commit is contained in:
Oliver Booth 2023-08-28 01:02:03 +01:00
parent 2e207ee733
commit b5bc7c2a85
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/runtime:7.0 AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
@ -10,7 +10,7 @@ WORKDIR "/src/VPLink"
RUN dotnet build "VPLink.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "VPLink.csproj" -c Release -o /app/publish /p:UseAppHost=false
RUN dotnet publish "VPLink.csproj" -c Release -o /app/publish
FROM base AS vpsdk
WORKDIR /vpsdk