Reduced docker image size to 1.936 GB

This commit is contained in:
butomo1989 2017-03-22 14:28:54 +01:00
parent bbab571a05
commit b24a26502c

View file

@ -18,6 +18,8 @@ WORKDIR /root
# Unzip zip file # Unzip zip file
# curl # curl
# Transfer data from or to a server # Transfer data from or to a server
# xterm
# Terminal emulator
# supervisor # supervisor
# Process manager # Process manager
# openjdk-8-jdk # openjdk-8-jdk
@ -49,11 +51,12 @@ WORKDIR /root
# ubuntu-vm-builder # ubuntu-vm-builder
# bridge-utils # bridge-utils
#================== #==================
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y --no-install-recommends \
git \ git \
wget \ wget \
unzip \ unzip \
curl \ curl \
xterm \
supervisor \ supervisor \
openjdk-8-jdk \ openjdk-8-jdk \
libqt5webkit5 \ libqt5webkit5 \
@ -87,7 +90,7 @@ ENV SDK_VERSION=25.2.3 \
RUN wget -O android.zip https://dl.google.com/android/repository/tools_r${SDK_VERSION}-linux.zip \ RUN wget -O android.zip https://dl.google.com/android/repository/tools_r${SDK_VERSION}-linux.zip \
&& unzip android.zip && rm android.zip && unzip android.zip && rm android.zip
ENV PATH ${PATH}:${ANDROID_HOME}/tools ENV PATH ${PATH}:${ANDROID_HOME}/tools
RUN echo y | android update sdk --no-ui --filter platform-tools,build-tools-${BUILD_TOOL} RUN echo y | android update sdk --no-ui -a --filter platform-tools,build-tools-${BUILD_TOOL}
ENV PATH ${PATH}:${ANDROID_HOME}/platform-tools:${ANDROID_HOME}/build-tools ENV PATH ${PATH}:${ANDROID_HOME}/platform-tools:${ANDROID_HOME}/build-tools
RUN mv ${ANDROID_HOME}/tools/emulator ${ANDROID_HOME}/tools/emulator.backup RUN mv ${ANDROID_HOME}/tools/emulator ${ANDROID_HOME}/tools/emulator.backup