2019-04-19 20:48:37 +02:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine
|
|
|
|
|
|
|
|
WORKDIR /app
|
2019-08-12 02:33:28 +02:00
|
|
|
|
|
|
|
# Copy all solution files to container, and run restore
|
|
|
|
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/
|
|
|
|
COPY PluralKit.Web/PluralKit.Web.csproj /app/PluralKit.Web/
|
|
|
|
COPY PluralKit.sln /app
|
|
|
|
RUN dotnet restore
|
|
|
|
|
|
|
|
# Copy actual source code to container and build
|
2019-07-10 08:55:24 +02:00
|
|
|
COPY PluralKit.API /app/PluralKit.API
|
2019-05-08 21:16:41 +02:00
|
|
|
COPY PluralKit.Bot /app/PluralKit.Bot
|
|
|
|
COPY PluralKit.Core /app/PluralKit.Core
|
|
|
|
COPY PluralKit.Web /app/PluralKit.Web
|
2019-04-19 20:48:37 +02:00
|
|
|
RUN dotnet build
|
2019-08-12 02:33:28 +02:00
|
|
|
|
|
|
|
ENTRYPOINT dotnet run
|