├── Dockerfile └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | # based on https://registry.hub.docker.com/u/samtstern/android-sdk/dockerfile/ with openjdk-8 2 | FROM openjdk:8 3 | 4 | MAINTAINER FUJI Goro 5 | 6 | ENV DEBIAN_FRONTEND noninteractive 7 | 8 | # Install dependencies 9 | RUN dpkg --add-architecture i386 && \ 10 | apt-get update && \ 11 | apt-get install -yq libc6:i386 libstdc++6:i386 zlib1g:i386 libncurses5:i386 --no-install-recommends && \ 12 | apt-get clean 13 | 14 | # Download and untar SDK 15 | ENV ANDROID_SDK_URL http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz 16 | RUN curl -L "${ANDROID_SDK_URL}" | tar --no-same-owner -xz -C /usr/local 17 | ENV ANDROID_HOME /usr/local/android-sdk-linux 18 | ENV ANDROID_SDK /usr/local/android-sdk-linux 19 | ENV PATH ${ANDROID_HOME}/tools:$ANDROID_HOME/platform-tools:$PATH 20 | 21 | # Install Android SDK components 22 | 23 | # License Id: android-sdk-license-ed0d0a5b 24 | ENV ANDROID_COMPONENTS platform-tools,build-tools-23.0.3,build-tools-24.0.0,build-tools-24.0.2,android-23,android-24 25 | # License Id: android-sdk-license-5be876d5 26 | ENV GOOGLE_COMPONENTS extra-android-m2repository,extra-google-m2repository 27 | 28 | RUN echo y | android update sdk --no-ui --all --filter "${ANDROID_COMPONENTS}" ; \ 29 | echo y | android update sdk --no-ui --all --filter "${GOOGLE_COMPONENTS}" 30 | 31 | # Support Gradle 32 | ENV TERM dumb 33 | 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dockerfile for Android Projects 2 | 3 | This is a Dockerfile to make minimum images for Android projects. 4 | No `ant`, `maven`, nor `android-ndk` are included. 5 | 6 | ## Included 7 | 8 | * OpenJDK 8 9 | * Android SDK 10 | * Android Support Libraries 11 | * Google Play Services 12 | 13 | ## Maintainance 14 | 15 | * Just rebuild it for minor updates 16 | * Update components for major updates 17 | * You can find component ids by `android list sdk --all --extended` 18 | 19 | # Author 20 | 21 | FUJI Goro (gfx) 22 | 23 | # License 24 | 25 | The MIT License. 26 | 27 | Copyright (c) 2015 FUJI Goro . 28 | 29 | Permission is hereby granted, free of charge, to any person obtaining a copy 30 | of this software and associated documentation files (the "Software"), to deal 31 | in the Software without restriction, including without limitation the rights 32 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 33 | copies of the Software, and to permit persons to whom the Software is 34 | furnished to do so, subject to the following conditions: 35 | 36 | The above copyright notice and this permission notice shall be included in 37 | all copies or substantial portions of the Software. 38 | 39 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 40 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 41 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 42 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 43 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 44 | OUT OF OR IN CONNECTION 45 | 46 | --------------------------------------------------------------------------------