Dockerfile 1.55 KB
Newer Older
1
2
3
FROM 0xacab.org:4567/leap/bitmask_android/android-sdk:latest

MAINTAINER LEAP Encryption Access Project <info@leap.se>
4
LABEL Description="Android NDK image based on android-sdk baseimage" Vendor="LEAP" Version="r20"
5
6
7

# Make sure debconf doesn't complain about lack of interactivity
ENV DEBIAN_FRONTEND noninteractive
8
9
10

# ------------------------------------------------------
# --- Install System Dependencies
11
12
13
14
15
16
17
18
19
20
21
22
# Need docker package in order to do Docker-in-Docker (DIND)
RUN apt-get update -qq && \
    apt-get -y dist-upgrade && \
    apt-get install -y gnupg apt-transport-https
RUN echo 'deb https://apt.dockerproject.org/repo debian-stretch main'> /etc/apt/sources.list.d/docker.list && \
    curl -s https://apt.dockerproject.org/gpg | apt-key add -
# JNI build dependencies w/ 32-bit compatible C libs
RUN apt-get update -qq && \
    apt-get -y install docker-engine make gcc file lib32stdc++6 lib32z1  && \
    apt-get clean && \
    apt-get autoclean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
23
24
25
26

# ------------------------------------------------------
# --- Install Android NDK (for running C code)

27
ENV ANDROID_NDK_VERSION "r21e"
28
ENV ANDROID_NDK_HOME ${ANDROID_HOME}/android-ndk-${ANDROID_NDK_VERSION}
29
30
31
32
33
34
35
ENV ANDROID_NDK_URL http://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip

RUN curl -L $ANDROID_NDK_URL -o ndk.zip  \
    && unzip ndk.zip -d $ANDROID_HOME  \
    && rm -rf ndk.zip

ENV PATH ${PATH}:${ANDROID_NDK_HOME}
36

cyberta's avatar
cyberta committed
37
RUN echo "accept all licenses"
38
# Accept all licenses
39
RUN yes | sdkmanager --licenses
cyberta's avatar
cyberta committed
40
41
RUN sdkmanager --list