-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
38 lines (28 loc) · 972 Bytes
/
Dockerfile
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
FROM openjdk:8
LABEL maintainer="Jordan Wright <[email protected]>"
RUN apt-get update && apt-get install -y \
wget \
unzip \
p7zip-full;
ENV JD_VERSION "1.4.0"
#ENV JD_VERSION "1.6.6"
ENV JD_CLI_VERSION "0.9.1.Final"
# ENV JD_CLI_VERSION "1.0.1.Final"
RUN mkdir -p /opt
WORKDIR /opt
# Dex2Jar
RUN wget -q -O "dex2jar-2.1.zip" https://github.com/pxb1988/dex2jar/files/1867564/dex-tools-2.1-SNAPSHOT.zip \
&& unzip dex2jar-2.1.zip \
&& chmod u+x dex-tools-2.1-SNAPSHOT/*.sh \
&& rm -f dex2jar-2.1.zip
ENV PATH $PATH:/opt/dex-tools-2.1-SNAPSHOT
# JD-GUI
RUN wget -q -O "jd-gui.jar" "https://github.com/java-decompiler/jd-gui/releases/download/v$JD_VERSION/jd-gui-$JD_VERSION.jar"
# JD-CLI
RUN wget -q -O "jd-cli.zip" "https://github.com/kwart/jd-cmd/releases/download/jd-cmd-$JD_CLI_VERSION/jd-cli-$JD_CLI_VERSION-dist.zip"
RUN unzip jd-cli.zip
# Extract.sh
COPY extract.sh .
RUN chmod +x extract.sh
VOLUME "/apk"
ENTRYPOINT ["./extract.sh"]