-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,26 +3,27 @@ MAINTAINER Anton Malinskiy "[email protected]" | |
|
||
USER root | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y --no-install-recommends git curl build-essential jq unzip zip rename openjdk-17-jdk \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN apt-get update -y && \ | ||
apt-get install -y --no-install-recommends locales git curl build-essential jq unzip zip rename openjdk-17-jdk libpulse0 xvfb fluxbox && \ | ||
locale-gen en_US.UTF-8 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ARG android_home=/opt/android-sdk | ||
ENV ANDROID_HOME ${android_home} | ||
ENV ANDROID_SDK_ROOT ${android_home} | ||
ENV LANG=en_US.UTF-8 \ | ||
LANGUAGE=en_US:en \ | ||
LC_ALL=en_US.UTF-8 \ | ||
ANDROID_HOME=/opt/android-sdk \ | ||
ANDROID_SDK_ROOT=/opt/android-sdk | ||
|
||
ARG COMMANDLINE_TOOLS_URL=https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip | ||
ARG ANDROID_SDK_FILE_NAME=commandlinetools.zip | ||
|
||
RUN curl $COMMANDLINE_TOOLS_URL --progress-bar --location --output $ANDROID_SDK_FILE_NAME && \ | ||
unzip -q $ANDROID_SDK_FILE_NAME -d $ANDROID_HOME && \ | ||
RUN curl $COMMANDLINE_TOOLS_URL --progress-bar --location --output commandlinetools.zip && \ | ||
unzip -q commandlinetools.zip -d $ANDROID_HOME && \ | ||
mv $ANDROID_HOME/cmdline-tools $ANDROID_HOME/bootstrap-version && \ | ||
mkdir $ANDROID_HOME/cmdline-tools && \ | ||
mv $ANDROID_HOME/bootstrap-version $ANDROID_HOME/cmdline-tools && \ | ||
rm -f $ANDROID_SDK_FILE_NAME | ||
rm -f commandlinetools.zip | ||
|
||
ENV PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/cmdline-tools/bootstrap-version/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools:$ANDROID_HOME/platform-tools/bin | ||
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${ANDROID_HOME}/emulator/lib64/qt/lib:${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/gles_swiftshader | ||
RUN mkdir ~/.android && echo '### User Sources for Android SDK Manager' > ~/.android/repositories.cfg | ||
RUN yes | sdkmanager --licenses && yes | sdkmanager --update | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters