2019-12-21 23:40:57 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
|
2019-04-19 18:48:37 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
2019-08-12 04:49:18 +00:00
|
|
|
COPY . /app
|
|
|
|
RUN dotnet publish -c Release -o out
|
|
|
|
|
2019-12-21 23:40:57 +00:00
|
|
|
# TODO: is using aspnet correct here? Required for API but might break Bot
|
2019-12-23 14:50:02 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
|
2019-08-12 04:49:18 +00:00
|
|
|
WORKDIR /app
|
2019-12-23 14:50:02 +00:00
|
|
|
RUN dotnet tool install --global dotnet-trace && dotnet tool install --global dotnet-dump && dotnet tool install --global dotnet-counters
|
2019-12-21 23:40:57 +00:00
|
|
|
COPY --from=build /app/PluralKit.*/bin/Release/netcoreapp3.1 ./
|
2019-08-12 04:49:18 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["dotnet"]
|
|
|
|
CMD ["PluralKit.Bot.dll"]
|
|
|
|
|