Dockerfile -rw-r--r-- 594 B
1# Dockerfile for cross-platform Pomo builds
2FROM golang:1.12-stretch
3
4ENV OSXCROSS_REPO="https://github.com/tpoechtrager/osxcross.git"
5ENV OSX_SDK_TARBALL="https://s3.dockerproject.org/darwin/v2/MacOSX10.11.sdk.tar.xz"
6
7RUN \
8 apt-get update -yyq \
9 && apt-get install -yyq \
10 clang \
11 libxml2 \
12 patch \
13 xz-utils
14
15RUN \
16 mkdir /build \
17 && cd /build \
18 && git clone --depth=1 "$OSXCROSS_REPO" \
19 && cd osxcross/tarballs \
20 && wget "$OSX_SDK_TARBALL" \
21 && cd .. \
22 && UNATTENDED=1 ./build.sh
23
24ENV PATH="$PATH:/build/osxcross/target/bin"