-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.osx-x64
40 lines (32 loc) · 1.29 KB
/
Dockerfile.osx-x64
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM jetbrains/teamcity-minimal-agent:latest
# This is important for using apt-get
USER root
# Install cross-build dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates subversion ncftp \
git autoconf wget make patch cmake clang llvm-dev uuid-dev libssl-dev lzma-dev libxml2-dev python3
# Prepare cross-build environment
ENV MACOSX_DEPLOYMENT_TARGET=10.15 \
PATH="${PATH}:/opt/osxcross/bin" \
OSXCROSS_MP_INC=1
RUN mkdir -p /opt/osxcross && \
git clone https://github.com/tpoechtrager/osxcross.git /opt/osxcross/setup_files && \
cd /opt/osxcross/setup_files && \
wget -P tarballs https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz && \
UNATTENDED=1 TARGET_DIR=/opt/osxcross ./build.sh && \
UNATTENDED=1 ../bin/osxcross-macports install mysql8 libidn2
# Default build configuration
ENV AS_BUILDAGENT=0 \
BUILD_ARCHITECTURE=x64 \
BUILD_CONFIG=release \
AR=x86_64-apple-darwin20.4-ar \
CC=x86_64-apple-darwin20.4-clang \
CXX=x86_64-apple-darwin20.4-clang++
# Set build directory
VOLUME /build
WORKDIR /build
# Copy entrypoint script
COPY utils/docker-entrypoint-osx.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# Set entrypoint
ENTRYPOINT /docker-entrypoint.sh