|
1 |
| -FROM alpine/git AS retriver |
| 1 | +FROM mcr.microsoft.com/dotnet/sdk:5.0 AS deps-build |
| 2 | +WORKDIR /app/Dependencies |
| 3 | +COPY ./Dependencies ./ |
| 4 | +RUN dotnet build |
| 5 | +RUN rm ./bin/Debug/netstandard2.1/System.Runtime.InteropServices.WindowsRuntime.dll |
| 6 | + |
| 7 | + |
| 8 | +FROM alpine/git AS rx-retriver |
2 | 9 | WORKDIR /app
|
3 | 10 | RUN git clone --branch rxnet-v5.0.0 --depth 1 https://github.com/dotnet/reactive.git
|
4 |
| -RUN git clone --branch v1.0.2 --depth 1 https://github.com/Cosmic-Shores/Rx.Data.git |
5 | 11 | RUN cp ./reactive/Rx.NET/Source/Directory.build.props ./reactive/Rx.NET/Source/src/System.Reactive/Directory.build.props
|
6 |
| -COPY ./Patches/Directory.build.props ./Rx.Data/src/Directory.build.props |
7 |
| -COPY ./Patches/SchedulerDefaults.cs ./reactive/Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerDefaults.cs |
8 |
| -COPY ./Patches/InternalsVisibleTo.cs ./reactive/Rx.NET/Source/src/System.Reactive/Properties/InternalsVisibleTo.cs |
9 |
| -COPY ./Patches/global.json ./reactive/Rx.NET/Source/src/global.json |
10 | 12 |
|
11 |
| -FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env |
| 13 | +FROM mcr.microsoft.com/dotnet/sdk:5.0 AS rx-build |
12 | 14 | WORKDIR /app
|
13 |
| -COPY --from=retriver /app ./ |
| 15 | +COPY --from=rx-retriver /app ./ |
14 | 16 | COPY ./Patcher ./Patcher/
|
15 |
| -COPY ./Dependencies ./Dependencies/ |
16 |
| - |
17 |
| -WORKDIR /app/Dependencies |
18 |
| -RUN dotnet build |
19 |
| -RUN rm ./bin/Debug/netstandard2.1/System.Runtime.InteropServices.WindowsRuntime.dll |
20 | 17 |
|
21 | 18 | WORKDIR /app/Patcher
|
22 | 19 | RUN dotnet run
|
23 | 20 |
|
| 21 | +WORKDIR /app |
| 22 | +COPY ./Patches/SchedulerDefaults.cs ./reactive/Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerDefaults.cs |
| 23 | +COPY ./Patches/InternalsVisibleTo.cs ./reactive/Rx.NET/Source/src/System.Reactive/Properties/InternalsVisibleTo.cs |
| 24 | +COPY ./Patches/global.json ./reactive/Rx.NET/Source/src/global.json |
| 25 | + |
24 | 26 | WORKDIR /app/reactive/Rx.NET/Source/src/System.Reactive
|
25 | 27 | RUN dotnet build
|
26 | 28 |
|
| 29 | + |
| 30 | +FROM alpine/git AS rxdata-retriver |
| 31 | +WORKDIR /app |
| 32 | +RUN git clone --branch main --depth 1 https://github.com/Cosmic-Shores/Rx.Data.git |
| 33 | + |
| 34 | +FROM mcr.microsoft.com/dotnet/sdk:5.0 AS rxdata-build |
27 | 35 | WORKDIR /app/Rx.Data
|
| 36 | +COPY --from=rx-build /app/reactive/Rx.NET/Source/src/System.Reactive/bin/Debug/netstandard2.0 ./src/ |
| 37 | +COPY --from=rxdata-retriver /app ../ |
| 38 | +COPY ./Patches/Directory.build.props ./src/Directory.build.props |
28 | 39 | RUN dotnet build
|
29 | 40 |
|
| 41 | + |
30 | 42 | FROM scratch AS export-stage
|
31 |
| -COPY --from=build-env /app/Dependencies/bin/Debug/netstandard2.1 ./ |
32 |
| -COPY --from=build-env /app/reactive/Rx.NET/Source/src/System.Reactive/bin/Debug/netstandard2.0 ./ |
33 |
| -COPY --from=build-env /app/Rx.Data/src/Rx.Extendibility/bin/Debug/netstandard2.0 ./ |
34 |
| -COPY --from=build-env /app/Rx.Data/src/Rx.Data/bin/Debug/netstandard2.0 ./ |
| 43 | +COPY --from=deps-build /app/Dependencies/bin/Debug/netstandard2.1 ./ |
| 44 | +COPY --from=rx-build /app/reactive/Rx.NET/Source/src/System.Reactive/bin/Debug/netstandard2.0 ./ |
| 45 | +COPY --from=rxdata-build /app/Rx.Data/src/Rx.Extendibility/bin/Debug/netstandard2.0 ./ |
| 46 | +COPY --from=rxdata-build /app/Rx.Data/src/Rx.Data/bin/Debug/netstandard2.0 ./ |
0 commit comments