2020-01-18 08:59:25 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.101 AS builder
|
2019-10-09 09:18:32 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends chromium-driver \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2017-10-02 17:41:03 +02:00
|
|
|
|
2018-12-18 14:35:58 +01:00
|
|
|
WORKDIR /source
|
2019-10-08 08:21:30 +02:00
|
|
|
COPY nuget.config nuget.config
|
2019-06-18 06:51:04 +02:00
|
|
|
COPY Build/Common.csproj Build/Common.csproj
|
2018-12-18 14:35:58 +01:00
|
|
|
COPY BTCPayServer/BTCPayServer.csproj BTCPayServer/BTCPayServer.csproj
|
2019-06-02 10:37:44 +02:00
|
|
|
COPY BTCPayServer.Common/BTCPayServer.Common.csproj BTCPayServer.Common/BTCPayServer.Common.csproj
|
|
|
|
COPY BTCPayServer.Rating/BTCPayServer.Rating.csproj BTCPayServer.Rating/BTCPayServer.Rating.csproj
|
2019-10-08 08:21:30 +02:00
|
|
|
COPY BTCPayServer.Data/BTCPayServer.Data.csproj BTCPayServer.Data/BTCPayServer.Data.csproj
|
2019-10-09 09:18:32 +02:00
|
|
|
RUN cd BTCPayServer && dotnet restore
|
|
|
|
COPY BTCPayServer.Common/. BTCPayServer.Common/.
|
|
|
|
COPY BTCPayServer.Rating/. BTCPayServer.Rating/.
|
|
|
|
COPY BTCPayServer.Data/. BTCPayServer.Data/.
|
|
|
|
COPY BTCPayServer/. BTCPayServer/.
|
|
|
|
COPY Build/Version.csproj Build/Version.csproj
|
2019-05-14 15:29:05 +02:00
|
|
|
|
|
|
|
ENV SCREEN_HEIGHT 600 \
|
|
|
|
SCREEN_WIDTH 1200
|
|
|
|
|
2018-12-18 14:35:58 +01:00
|
|
|
COPY . .
|
2020-01-14 13:27:48 +01:00
|
|
|
RUN cd BTCPayServer.Tests && dotnet build /p:CI_TESTS=true /p:RazorCompileOnBuild=true
|
2018-12-18 14:35:58 +01:00
|
|
|
WORKDIR /source/BTCPayServer.Tests
|
|
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|