| # debian.sh --arch 'amd64' out/ 'trixie' '@1777939200' |
| WORKDIR /root |
| RUN /bin/sh -c echo docker_cross_compiler > /etc/hostname # buildkit |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c apt-get install -y sudo wget # buildkit |
| RUN /bin/sh -c apt-get update # buildkit |
| RUN /bin/sh -c apt-get install -y build-essential bzip2 cmake clang cpio curl gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu gcc-i686-linux-gnu git libbz2-dev libharfbuzz-dev liblzma-dev libpng-dev libssl-dev libxml2-dev llvm mingw-w64 meson ninja-build nodejs patch python3 uuid xz-utils zlib1g-dev # buildkit |
| WORKDIR /root/ |
| COPY share/*.tar.gz /root/ # buildkit |
| RUN /bin/sh -c mkdir -p /usr/lib64/dotnet # buildkit |
| WORKDIR /usr/lib64/dotnet |
| RUN /bin/sh -c tar -zxf /root/dotnet-sdk-6.0.428-linux-x64.tar.gz # buildkit |
| RUN /bin/sh -c tar -zxf /root/dotnet-sdk-8.0.421-linux-x64.tar.gz # buildkit |
| RUN /bin/sh -c tar -zxf /root/dotnet-sdk-10.0.300-linux-x64.tar.gz # buildkit |
| RUN /bin/sh -c ln -s /usr/lib64/dotnet/dotnet /usr/local/bin/dotnet # buildkit |
| WORKDIR /root/ |
| RUN /bin/sh -c git clone --recurse-submodules "https://github.com/tpoechtrager/osxcross.git" osxcross # buildkit |
| WORKDIR /root/osxcross/tarballs |
| RUN /bin/sh -c wget "https://github.com/joseluisq/macosx-sdks/releases/download/14.0/MacOSX14.0.sdk.tar.xz" -O "MacOSX14.0.sdk.tar.xz" # buildkit |
| WORKDIR /root/osxcross |
| ENV UNATTENDED=1 TARGET_DIR=/usr/local SDK_DIR=/usr/local/osxcross-sdk |
| RUN /bin/sh -c bash -c "./build.sh" # buildkit |
| RUN /bin/sh -c echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/refuel_sudo_conf # buildkit |
| RUN /bin/sh -c adduser --comment "" --disabled-password refuel # buildkit |
| RUN /bin/sh -c addgroup wheel # buildkit |
| RUN /bin/sh -c usermod -aG wheel refuel # buildkit |
| USER refuel |
| WORKDIR /home/refuel |
| COPY sh/bashrc.sh /home/refuel/.bashrc # buildkit |
| CMD ["/bin/sh" "-c" "bash"] |