forked from checkra1n/PongoOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (16 loc) · 1.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM debian
RUN apt -y update; apt -y upgrade
RUN apt -y install automake make autoconf git wget tar xz-utils lzma libtinfo5 xxd
RUN mkdir -p /opt
RUN cd /opt; wget https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf.tar.xz; xz -d gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf.tar.xz; tar xvf gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf.tar
RUN cd /opt; wget https://github.com/sbingner/llvm-project/releases/download/v10.0.0-1/linux-ios-arm64e-clang-toolchain.tar.lzma; mv linux-ios-arm64e-clang-toolchain.tar.lzma linux-ios-arm64e-clang-toolchain.tar.xz; xz -d linux-ios-arm64e-clang-toolchain.tar.xz; tar xvf linux-ios-arm64e-clang-toolchain.tar
ENV PATH="/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin:/opt/ios-arm64e-clang-toolchain/bin:${PATH}"
RUN mkdir -p /opt/sdks; cd /opt/sdks; \
git clone https://github.com/xybp888/iOS-SDKs.git; \
mkdir -p /opt/ios-arm64e-clang-toolchain/sdks; \
ln -s /opt/sdks/iOS-SDKs/iPhoneOS12.1.2.sdk /opt/ios-arm64e-clang-toolchain/sdks/iPhoneOS.sdk
RUN ln -s /opt/ios-arm64e-clang-toolchain/bin/strip /usr/local/bin/cctools-strip
RUN mkdir -p /pongo
ENV OBF no
ENV PATH "/pongo/scripts:$PATH"
CMD ["bash", "-c", "cd /pongo; make"]