2019-03-20 06:08:25 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:2.1.505-alpine3.7 AS builder
|
2018-12-18 14:35:58 +01:00
|
|
|
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT false
|
|
|
|
RUN apk add --no-cache icu-libs
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
2017-10-02 17:41:03 +02:00
|
|
|
|
2018-12-18 14:35:58 +01:00
|
|
|
WORKDIR /source
|
2019-06-02 10:37:44 +02:00
|
|
|
COPY Common.csproj 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
|
2018-12-18 14:35:58 +01:00
|
|
|
COPY BTCPayServer.Tests/BTCPayServer.Tests.csproj BTCPayServer.Tests/BTCPayServer.Tests.csproj
|
|
|
|
RUN dotnet restore BTCPayServer.Tests/BTCPayServer.Tests.csproj
|
2019-05-14 15:29:05 +02:00
|
|
|
|
|
|
|
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT false
|
|
|
|
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
|
|
|
|
RUN apk add --no-cache chromium chromium-chromedriver icu-libs
|
|
|
|
|
|
|
|
ENV SCREEN_HEIGHT 600 \
|
|
|
|
SCREEN_WIDTH 1200
|
|
|
|
|
2018-12-18 14:35:58 +01:00
|
|
|
COPY . .
|
2019-06-02 10:41:34 +02:00
|
|
|
RUN cd BTCPayServer.Tests && dotnet build
|
2018-12-18 14:35:58 +01:00
|
|
|
WORKDIR /source/BTCPayServer.Tests
|
|
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|