Fix nospa image

This commit is contained in:
Kieran 2022-03-08 14:06:16 +00:00
parent 86ce63ee8b
commit 29cd0c20d8
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -3,9 +3,9 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
WORKDIR /app
# Copy everything else and build
COPY VoidCat .
COPY . .
RUN rm -rf appsettings.*.json
RUN dotnet publish -c Release -o out -p:HostSPA=Flase VoidCat.csproj
RUN dotnet publish -c Release -o out -p:HostSPA=Flase VoidCat/VoidCat.csproj
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0