-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (37 loc) · 1.48 KB
/
Dockerfile
File metadata and controls
48 lines (37 loc) · 1.48 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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
wget \
unzip \
git \
openjdk-8-jdk \
qt5-default \
libqt5charts5-dev \
libncurses5 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV QT5Path=/usr/lib/qt5
RUN wget https://dl.google.com/android/repository/android-ndk-r20-linux-x86_64.zip -O /tmp/android-ndk-r20.zip \
&& unzip /tmp/android-ndk-r20.zip -d /opt \
&& rm /tmp/android-ndk-r20.zip
RUN wget https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip -O /tmp/android-ndk-r16b.zip \
&& unzip /tmp/android-ndk-r16b.zip -d /opt \
&& rm /tmp/android-ndk-r16b.zip
ENV ANDROID_NDK_HOME=/opt/android-ndk-r20
ENV Ndk_R20_CMD=/opt/android-ndk-r20/ndk-build
ENV Ndk_R16_CMD=/opt/android-ndk-r16b/ndk-build
ENV PATH=$PATH:$ANDROID_NDK_HOME
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip -O /tmp/cmdline-tools.zip \
&& mkdir -p /opt/cmdline-tools \
&& unzip /tmp/cmdline-tools.zip -d /opt/cmdline-tools \
&& rm /tmp/cmdline-tools.zip
ENV ANDROID_SDK_ROOT=/opt/cmdline-tools
ENV PATH=$PATH:$ANDROID_SDK_ROOT/tools/bin
RUN wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4-Linux-x86_64.sh -O /tmp/cmake.sh \
&& chmod +x /tmp/cmake.sh \
&& /tmp/cmake.sh --skip-license --prefix=/usr/local \
&& rm /tmp/cmake.sh
WORKDIR /workspace/loli_profiler
CMD ["bash"]