PluralKit/Dockerfile
2019-12-22 00:40:57 +01:00

15 lines
378 B
Docker

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
WORKDIR /app
COPY . /app
RUN dotnet publish -c Release -o out
# 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.*/bin/Release/netcoreapp3.1 ./
ENTRYPOINT ["dotnet"]
CMD ["PluralKit.Bot.dll"]