Fix Dockerfile

This commit is contained in:
Ske 2021-03-03 23:27:54 +01:00
parent 74424edc89
commit 2039a34c16
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
# Include project code and build files
!PluralKit.*/
!Myriad/
!PluralKit.sln
!nuget.config

View File

@ -1,8 +1,9 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.401
FROM mcr.microsoft.com/dotnet/sdk:5.0
WORKDIR /app
# Restore/fetch dependencies excluding app code to make use of caching
COPY PluralKit.sln nuget.config /app/
COPY Myriad/Myriad.csproj /app/Myriad/
COPY PluralKit.API/PluralKit.API.csproj /app/PluralKit.API/
COPY PluralKit.Bot/PluralKit.Bot.csproj /app/PluralKit.Bot/
COPY PluralKit.Core/PluralKit.Core.csproj /app/PluralKit.Core/