btcpayserver/BTCPayServer.Tests/Dockerfile

29 lines
1,012 B
Text
Raw Normal View History

2019-03-20 14:08:25 +09:00
FROM mcr.microsoft.com/dotnet/core/sdk:2.1.505-alpine3.7 AS builder
2018-12-18 22:35:58 +09: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
2018-12-18 22:35:58 +09:00
WORKDIR /source
2019-06-18 13:51:04 +09:00
COPY Build/Common.csproj Build/Common.csproj
2018-12-18 22:35:58 +09:00
COPY BTCPayServer/BTCPayServer.csproj BTCPayServer/BTCPayServer.csproj
2019-06-02 17:37:44 +09: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 22:35:58 +09:00
COPY BTCPayServer.Tests/BTCPayServer.Tests.csproj BTCPayServer.Tests/BTCPayServer.Tests.csproj
RUN dotnet restore BTCPayServer.Tests/BTCPayServer.Tests.csproj
2019-05-14 22:29:05 +09: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 22:35:58 +09:00
COPY . .
2019-06-02 17:41:34 +09:00
RUN cd BTCPayServer.Tests && dotnet build
2018-12-18 22:35:58 +09:00
WORKDIR /source/BTCPayServer.Tests
ENTRYPOINT ["./docker-entrypoint.sh"]