| 1 | ARG BASE_IMAGE |
| 2 | FROM --platform=linux/amd64 ${BASE_IMAGE} AS build |
| 3 | |
| 4 | RUN mkdir -p /w/scripts/android |
| 5 | COPY scripts/prepare_reown.sh /w/scripts/prepare_reown.sh |
| 6 | COPY scripts/android/build_reown_deps.sh /w/scripts/android/build_reown_deps.sh |
| 7 | RUN cd $(dirname $(which flutter)) && git checkout 3.32.0 |
| 8 | RUN /w/scripts/android/build_reown_deps.sh \ |
| 9 | && rm -rf /w/scripts/reown_flutter/packages/reown_core/.dart_tool \ |
| 10 | && rm -rf /w/scripts/reown_flutter/packages/reown_sign/.dart_tool \ |
| 11 | && rm -rf /w/scripts/reown_flutter/packages/reown_cli/.dart_tool \ |
| 12 | && rm -rf /w/scripts/reown_flutter/packages/reown_walletkit/example/.dart_tool \ |
| 13 | && rm -rf /w/scripts/reown_flutter/packages/reown_walletkit/.dart_tool \ |
| 14 | && rm -rf /w/scripts/reown_flutter/packages/reown_yttrium/.dart_tool \ |
| 15 | && rm -rf /w/scripts/reown_flutter/packages/reown_appkit/example/base/.dart_tool \ |
| 16 | && rm -rf /w/scripts/reown_flutter/packages/reown_appkit/example/modal/.dart_tool \ |
| 17 | && rm -rf /w/scripts/reown_flutter/packages/reown_appkit/.dart_tool \ |
| 18 | && rm -rf /w/scripts/reown_flutter/.dart_tool \ |
| 19 | && rm -rf /w/scripts/reown_flutter/scripts/yttrium/target |
| 20 | |
| 21 | FROM --platform=linux/amd64 alpine |
| 22 | COPY --from=build /w /w |