anchor.diff:  ENV GRADLE_HOME /usr/bin/gradle
   ENV PATH $PATH:$GRADLE_HOME/bin
   
  -# Caches
  -VOLUME /root/.gradle/caches
  -
  -# Cleaning
  -RUN apt-get clean
  -
   # GO to workspace
   RUN mkdir -p /opt/workspace
   WORKDIR /opt/workspace
  +
  
positive.code: RUN which android
  
  # Install Gradle
  RUN apt-get install -y unzip
  WORKDIR /usr/lib
  ENV GRADLE_VERSION 2.2.1
  RUN wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-all.zip && \
  
negative.code: 
  MAINTAINER bssthu
  
  # Install java7 and Deps
  
  RUN apt-get install -y --no-install-recommends software-properties-common && \
      add-apt-repository -y ppa:webupd8team/java && \
      apt-get update && \
      echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true \
          | /usr/bin/debconf-set-selections && \
      apt-get install -y oracle-java7-installer && \
      dpkg --add-architecture i386 && \
      apt-get update && \
      apt-get install -y --force-yes --no-install-recommends expect git wget \
          libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 \
          lib32z1 python curl unzip && \
      apt-get clean && \
      rm -rf /var/lib/apt/lists/*
  
  # Install Android SDK
  RUN cd /opt && \
      wget --output-document=android-sdk.tgz --quiet \
          http://dl.google.com/android/android-sdk_r24.3.3-linux.tgz  && \
      tar xzf android-sdk.tgz && \
      rm -f android-sdk.tgz && \
      chown -R root.root android-sdk-linux
  
  # Setup environment
  ENV ANDROID_HOME /opt/android-sdk-linux
  