-
Notifications
You must be signed in to change notification settings - Fork 6
/
apkWorkerDockerfile
63 lines (54 loc) · 1.85 KB
/
apkWorkerDockerfile
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
54
55
56
57
58
59
60
61
62
63
FROM python:3.7.4-buster
RUN mkdir /decompilers
WORKDIR /decompilers
COPY requirements_worker.txt /tmp/requirements_worker.txt
COPY requirements_test.txt /tmp/requirements_test.txt
RUN pip install --upgrade pip && \
pip --retries 10 install -r /tmp/requirements_worker.txt
# Generic
RUN apt-get update && \
apt-get install --no-install-recommends -y build-essential apt-transport-https && \
apt-get install --no-install-recommends -y gnutls-bin \
host \
unzip \
xauth \
xvfb \
zenity \
zlib1g \
zlib1g-dev \
zlibc && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
# Install OpenJDK-11
RUN apt update && \
echo 'deb http://ftp.de.debian.org/debian buster main' >> /etc/apt/sources.list && \
apt update && \
apt-get install --no-install-recommends -y openjdk-11-jdk && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
# Install apktool
RUN apt update && \
apt-get install --no-install-recommends -y apktool=2.3.4-1 && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
# Java decompilers
RUN echo "Installing java decompilers" && \
echo "Installing dex2jar (dex->jar)" && \
mkdir /dex2jar && \
cd /dex2jar && \
wget --no-check-certificate -nc https://downloads.sourceforge.net/project/dex2jar/dex2jar-2.0.zip -O download && \
unzip download && \
rm -rf download && \
chmod +x ./dex2jar-2.0/*.sh && \
mv ./dex2jar-2.0/* ./ && \
cd ../ && \
echo "dex2jar installed" && \
echo "Installing jd-cli (jar->java)" && \
mkdir /jd-cli && \
cd /jd-cli && \
wget -nc https://github.com/kwart/jd-cmd/releases/download/jd-cmd-0.9.1.Final/jd-cli-0.9.1.Final-dist.zip && \
unzip jd-cli-0.9.1.Final-dist.zip && \
rm -rf jd-cli-0.9.1.Final-dist.zip && \
cd ../ && \
echo "jd-cli installed"
RUN ln -Ts /decompilers/ /daas