btcpayserver/BTCPayServer.Tests/Dockerfile

30 lines
1.2 KiB
Docker
Raw Normal View History

2023-11-21 06:11:17 +01:00
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-bookworm-slim 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/*
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 . .
ARG CONFIGURATION_NAME=Release
RUN cd BTCPayServer.Tests && dotnet build --configuration ${CONFIGURATION_NAME} /p:CI_TESTS=true /p:RazorCompileOnBuild=true
2018-12-18 14:35:58 +01:00
WORKDIR /source/BTCPayServer.Tests
ENV CONFIGURATION_NAME=${CONFIGURATION_NAME}
2018-12-18 14:35:58 +01:00
ENTRYPOINT ["./docker-entrypoint.sh"]