PluralKit/Dockerfile

15 lines
378 B
Docker
Raw Normal View History

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
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine
2019-08-12 04:49:18 +00:00
WORKDIR /app
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"]