-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (31 loc) · 1.16 KB
/
Dockerfile
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
41
FROM microsoft/dotnet:2-sdk
ENV MONO_VERSION 5.4.1
ENV DOCKER_HOST=tcp://docker:2375
ENV ANDROID_SDK_PATH=/root/android-toolchain/sdk/
ENV ANDROID_NDK_PATH=/root/android-toolchain/ndk/
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb http://download.mono-project.com/repo/debian stretch/snapshots/$MONO_VERSION main" > /etc/apt/sources.list.d/mono-official.list
RUN apt-get update
RUN apt-get install -y mono-complete socat libgit2-dev unzip libssl1.0 libcurl3 jq
RUN mozroots --import --sync
WORKDIR /build
RUN wget https://dist.nuget.org/win-x86-commandline/v4.3.0/nuget.exe
RUN echo 'mono --runtime=v4.0 /build/nuget.exe $*' > nuget
RUN chmod +x nuget
COPY build.sh .
COPY preload.cake .
COPY setup.sh .
COPY ./gitver /usr/bin
COPY ./get_versions /usr/bin
RUN chmod +x build.sh
RUN chmod +x setup.sh
RUN chmod +x /usr/bin/get_versions
RUN ./build.sh -s preload.cake
RUN ./setup.sh
COPY setup_android.sh .
RUN chmod +x setup_android.sh
RUN ./setup_android.sh
WORKDIR /usr/bin
RUN ln -s /build/nuget
RUN ln -s /build/build.sh cake
RUN curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh