1 | # Dockerfile for cross-platform Pomo builds |
2 | FROM golang:1.12-stretch |
3 | |
4 | ENV OSXCROSS_REPO="https://github.com/tpoechtrager/osxcross.git" |
5 | ENV OSX_SDK_TARBALL="https://s3.dockerproject.org/darwin/v2/MacOSX10.11.sdk.tar.xz" |
6 | |
7 | RUN \ |
8 | apt-get update -yyq \ |
9 | && apt-get install -yyq \ |
10 | clang \ |
11 | libxml2 \ |
12 | patch \ |
13 | xz-utils |
14 | |
15 | RUN \ |
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 | |
24 | ENV PATH="$PATH:/build/osxcross/target/bin" |