mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Upgrade to .NET Core 3.1
This commit is contained in:
parent
7b55abaacd
commit
9c9e48a799
5 changed files with 21 additions and 20 deletions
|
|
@ -1,12 +1,13 @@
|
|||
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine AS build
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
RUN dotnet publish -c Release -o out
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/core/runtime:2.2-alpine
|
||||
# TODO: is using aspnet correct here? Required for API but might break Bot
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/PluralKit.*/out ./
|
||||
COPY --from=build /app/PluralKit.*/bin/Release/netcoreapp3.1 ./
|
||||
|
||||
ENTRYPOINT ["dotnet"]
|
||||
CMD ["PluralKit.Bot.dll"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue