2019-12-03 20:21:36 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS base
|
2019-10-31 12:25:49 +00:00
|
|
|
# Native libgdiplus dependencies
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y --allow-unauthenticated libc6-dev libgdiplus libx11-dev
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN ln -s /lib/x86_64-linux-gnu/libdl-2.24.so /lib/x86_64-linux-gnu/libdl.so
|
|
|
|
# Regular stuff
|
2019-08-24 15:46:10 +00:00
|
|
|
COPY packages /root/.nuget/packages/
|
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
RUN rm -rf ./packages
|
|
|
|
RUN git status
|
2019-10-31 12:25:49 +00:00
|
|
|
# Build and test everything
|
2019-08-24 15:46:10 +00:00
|
|
|
RUN dotnet build "CompatBot/CompatBot.csproj" -c Release
|
|
|
|
ENV RUNNING_IN_DOCKER true
|
|
|
|
WORKDIR /src/CompatBot
|
|
|
|
RUN dotnet run -c Release --dry-run
|
2019-09-24 09:56:49 +00:00
|
|
|
ENTRYPOINT ["dotnet", "run", "-c", "Release", "CompatBot.csproj"]
|