This repository was archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (42 loc) · 1.46 KB
/
Dockerfile
File metadata and controls
53 lines (42 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# base image
FROM ubuntu:20.04
# noninteractive mode for jdk
ENV DEBIAN_FRONTEND noninteractive
# sdkmanager variables
ENV ANDROID_HOME /android
ENV PATH "${ANDROID_HOME}/cmdline-tools/tools/bin/:${PATH}"
ENV PATH "${ANDROID_HOME}/emulator/:${PATH}"
ENV PATH "${ANDROID_HOME}/platform-tools/:${PATH}"
ENV PATH "${ANDROID_HOME}/ndk/23.0.7599858/:${PATH}"
# required for ndk-build
ENV NDK_PATH "/android/ndk/23.0.7599858"
#wget & curl
RUN apt-get update \
&& apt-get install -y wget \
&& apt-get install -y curl
#cmake
RUN apt-get update \
&& apt-get install apt-transport-https ca-certificates gnupg software-properties-common wget -y \
&& wget -qO - https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - \
&& apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main' \
&& apt-get update \
&& apt-get install cmake -y
#jdk-8
RUN apt-get update \
&& apt-get install -y openjdk-8-jdk
#unzip
RUN apt-get install unzip -y
#android sdkmanager
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip \
&& mkdir -p /android/cmdline-tools/ && cd /android/cmdline-tools/ \
&& mv /commandlinetools-linux-7583922_latest.zip ./ \
&& unzip commandlinetools-linux-7583922_latest.zip \
&& rm commandlinetools-linux-7583922_latest.zip \
&& mv cmdline-tools tools \
&& sdkmanager
#install ndk
RUN yes | sdkmanager --licenses \
&& sdkmanager --list \
&& sdkmanager "ndk;23.0.7599858"
#mingw
RUN apt-get -y install gcc-mingw-w64-x86-64