2019-04-19 18:48:37 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine
|
|
|
|
|
|
|
|
WORKDIR /app
|
2019-08-12 00:33:28 +00: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 06:55:24 +00:00
|
|
|
COPY PluralKit.API /app/PluralKit.API
|
2019-05-08 19:16:41 +00:00
|
|
|
COPY PluralKit.Bot /app/PluralKit.Bot
|
|
|
|
COPY PluralKit.Core /app/PluralKit.Core
|
|
|
|
COPY PluralKit.Web /app/PluralKit.Web
|
2019-04-19 18:48:37 +00:00
|
|
|
RUN dotnet build
|
2019-08-12 00:33:28 +00:00
|
|
|
|
|
|
|
ENTRYPOINT dotnet run
|