docker-osxcross (sha256:06e8962c6ca01b65e684a7ffa84496fa04a32ef46d68778ac1fddcbf1e22ba00)

Published 2026-04-09 08:51:14 -05:00 by miles in miles/docker-osxcross

Installation

docker pull git.richey.dev/miles/docker-osxcross@sha256:06e8962c6ca01b65e684a7ffa84496fa04a32ef46d68778ac1fddcbf1e22ba00
sha256:06e8962c6ca01b65e684a7ffa84496fa04a32ef46d68778ac1fddcbf1e22ba00

Image layers

# debian.sh --arch 'arm64' out/ 'trixie' '@1762202650'
ARG VERSION=1.0.0-beta.3
ARG OSX_SDK_VERSION=13.3
ARG OSX_SDK_SUM=518e35eae6039b3f64e8025f4525c1c43786cc5cf39459d609852faf091e34be
ARG OSX_VERSION_MIN=10.14
ARG OSX_CROSS_COMMIT=f873f534c6cdb0776e457af8c7513da1e02abe59
ARG TARGETARCH=arm64
WORKDIR /usr/local/osxcross
RUN |6 VERSION=1.0.0-beta.3 OSX_SDK_VERSION=13.3 OSX_SDK_SUM=518e35eae6039b3f64e8025f4525c1c43786cc5cf39459d609852faf091e34be OSX_VERSION_MIN=10.14 OSX_CROSS_COMMIT=f873f534c6cdb0776e457af8c7513da1e02abe59 TARGETARCH=arm64 /bin/sh -c set -eux && CROSS_ARCH=$([ "$TARGETARCH" = "amd64" ] && echo "arm64" || echo "amd64") && dpkg --add-architecture $CROSS_ARCH && DEBIAN_FRONTEND=noninteractive apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests autoconf automake bison build-essential ca-certificates clang cmake curl file git libbz2-dev libssl-dev libxml2-dev pkgconf python3 xutils-dev xz-utils zlib1g-dev && apt-get clean && rm -rf /var/lib/apt/lists/* && true # buildkit
RUN |6 VERSION=1.0.0-beta.3 OSX_SDK_VERSION=13.3 OSX_SDK_SUM=518e35eae6039b3f64e8025f4525c1c43786cc5cf39459d609852faf091e34be OSX_VERSION_MIN=10.14 OSX_CROSS_COMMIT=f873f534c6cdb0776e457af8c7513da1e02abe59 TARGETARCH=arm64 /bin/sh -c set -eux && echo "Cloning osxcross..." && git init /usr/local/osxcross && cd /usr/local/osxcross && git fetch --depth 1 https://github.com/tpoechtrager/osxcross.git "${OSX_CROSS_COMMIT}" && git checkout FETCH_HEAD && rm -rf ./.git && true # buildkit
RUN |6 VERSION=1.0.0-beta.3 OSX_SDK_VERSION=13.3 OSX_SDK_SUM=518e35eae6039b3f64e8025f4525c1c43786cc5cf39459d609852faf091e34be OSX_VERSION_MIN=10.14 OSX_CROSS_COMMIT=f873f534c6cdb0776e457af8c7513da1e02abe59 TARGETARCH=arm64 /bin/sh -c set -eux && curl -sSL -o "./tarballs/MacOSX${OSX_SDK_VERSION}.sdk.tar.xz" "https://github.com/joseluisq/macosx-sdks/releases/download/${OSX_SDK_VERSION}/MacOSX${OSX_SDK_VERSION}.sdk.tar.xz" && echo "${OSX_SDK_SUM} ./tarballs/MacOSX${OSX_SDK_VERSION}.sdk.tar.xz" | sha256sum -c - && UNATTENDED=yes OSX_VERSION_MIN=${OSX_VERSION_MIN} ./build.sh && cd /usr/local/osxcross/build/apple-libtapi/src/llvm && rm -rf benchmarks examples unittests && rm -rf ./tarballs *.tar.xz /tmp/* && true # buildkit
RUN |6 VERSION=1.0.0-beta.3 OSX_SDK_VERSION=13.3 OSX_SDK_SUM=518e35eae6039b3f64e8025f4525c1c43786cc5cf39459d609852faf091e34be OSX_VERSION_MIN=10.14 OSX_CROSS_COMMIT=f873f534c6cdb0776e457af8c7513da1e02abe59 TARGETARCH=arm64 /bin/sh -c set -eux && cd /usr/local/osxcross && echo "Building osxcross with compiler-rt..." && env DISABLE_PARALLEL_ARCH_BUILD=1 ./build_compiler_rt.sh && cd /usr/local/osxcross/build/compiler-rt/llvm && rm -rf test unittests benchmarks examples docs && cd /usr/local/osxcross/build/compiler-rt/clang && rm -rf test unittests docs examples && rm -rf /tmp/* && true # buildkit
ENV VERSION=1.0.0-beta.3
ENV OSX_SDK_VERSION=13.3
ENV OSX_SDK_SUM=518e35eae6039b3f64e8025f4525c1c43786cc5cf39459d609852faf091e34be
ENV OSX_VERSION_MIN=10.14
ENV OSX_CROSS_COMMIT=f873f534c6cdb0776e457af8c7513da1e02abe59
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/osxcross/target/bin
ENV MACOSX_DEPLOYMENT_TARGET=10.14
ENV OSXCROSS_MACPORTS_MIRROR=https://packages.macports.org
ENV OSXCROSS_MACPORTS_LOCAL=/usr/local/osxcross/target/macports/pkgs/opt/local
ENV OSXCROSS_MACPORTS_LIBEXEC=/usr/local/osxcross/target/macports/pkgs/opt/local/libexec
ENV PKG_CONFIG_ALLOW_CROSS=true
ENV PKG_CONFIG_ALL_STATIC=true
RUN |6 VERSION=1.0.0-beta.3 OSX_SDK_VERSION=13.3 OSX_SDK_SUM=518e35eae6039b3f64e8025f4525c1c43786cc5cf39459d609852faf091e34be OSX_VERSION_MIN=10.14 OSX_CROSS_COMMIT=f873f534c6cdb0776e457af8c7513da1e02abe59 TARGETARCH=arm64 /bin/sh -c set -eux && echo "Testing osxcross with compiler-rt..." && echo "int main(void){return 0;}" | xcrun clang -xc -o/dev/null -v - 2>&1 | grep "libclang_rt" 1>/dev/null && echo "compiler-rt installed and working successfully!" && true # buildkit
LABEL version=1.0.0-beta.3 description=Linux arm64 Docker image for osxcross maintainer=Miles Richey <miles@raring.co> org.opencontainers.image.vendor=Miles Richey org.opencontainers.image.url=https://git.richey.dev/miles/docker-osxcross org.opencontainers.image.title=Docker OSXCross org.opencontainers.image.description=Linux arm64 Docker image for osxcross. org.opencontainers.image.version=1.0.0-beta.3 org.opencontainers.image.documentation=https://git.richey.dev/miles/docker-osxcross
WORKDIR /root/src
CMD ["bash"]

Labels

Key Value
description Linux arm64 Docker image for osxcross
maintainer Miles Richey <miles@raring.co>
org.opencontainers.image.created 2026-04-09T11:18:29.111Z
org.opencontainers.image.description
org.opencontainers.image.documentation https://git.richey.dev/miles/docker-osxcross
org.opencontainers.image.licenses
org.opencontainers.image.revision 5e06621a75f48b70756424f14ec2b89f168690f8
org.opencontainers.image.source https://git.richey.dev/miles/docker-osxcross
org.opencontainers.image.title docker-osxcross
org.opencontainers.image.url https://git.richey.dev/miles/docker-osxcross
org.opencontainers.image.vendor Miles Richey
org.opencontainers.image.version 1.0.0-beta.3
version 1.0.0-beta.3
Details
Container
2026-04-09 08:51:14 -05:00
1
OCI / Docker
linux/arm64
1.4 GiB
Versions (1) View all
1.0.0-beta.3 2026-04-09