-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rizin 0.4.0, apktool 2.6.1 and latest apkid (#12)
- Loading branch information
Showing
1 changed file
with
17 additions
and
11 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,20 +3,25 @@ | |
FROM alpine:edge | ||
|
||
WORKDIR / | ||
RUN apk add --update py-pip wget curl tar unzip xz git bash openjdk11 android-tools alpine-sdk python3-dev | ||
RUN apk add --update py-pip wget tar unzip xz bash openjdk11 android-tools | ||
RUN mkdir -p /fufluns || sleep 0 | ||
RUN pip install tornado rzpipe wheel apkid | ||
RUN wget -q https://github.com/rizinorg/rizin/releases/download/v0.3.1/rizin-v0.3.1-static-x86_64.tar.xz -O rizin.tar.xz && tar -xvkf rizin.tar.xz && rm -rf rizin.tar.xz | ||
|
||
RUN pip wheel --wheel-dir=/tmp-build/yara-python --build-option="build" --build-option="--enable-dex" git+https://github.com/VirusTotal/[email protected] && \ | ||
pip uninstall -y yara-python && \ | ||
pip install --no-index --find-links=/tmp-build/yara-python yara-python | ||
RUN pip install tornado rzpipe wheel apkid urllib3 | ||
RUN wget -q https://github.com/rizinorg/rizin/releases/download/v0.4.0/rizin-v0.4.0-static-x86_64.tar.xz -O rizin.tar.xz && \ | ||
tar -xvkf rizin.tar.xz && \ | ||
rm -rfv rizin.tar.xz \ | ||
share/rizin/sigdb/ \ | ||
lib/pkgconfig/ \ | ||
lib/*.a \ | ||
share/man/ \ | ||
include/ | ||
|
||
WORKDIR /usr/local/bin | ||
RUN curl -sLO https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool && chmod +x apktool | ||
RUN curl -sL -o apktool.jar https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.5.0.jar && chmod +x apktool.jar | ||
RUN wget -q https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O apktool && \ | ||
chmod +x apktool | ||
RUN wget -q https://github.com/iBotPeaches/Apktool/releases/download/v2.6.1/apktool_2.6.1.jar -O apktool.jar && \ | ||
chmod +x apktool.jar | ||
|
||
RUN apk del alpine-sdk python3-dev wget tar git curl xz | ||
RUN apk del wget tar unzip xz | ||
|
||
## copying fufluns | ||
WORKDIR / | ||
|
@@ -35,7 +40,8 @@ RUN adduser -D user | |
|
||
EXPOSE 8080/tcp | ||
|
||
RUN chown -R user /fufluns && chgrp -R user /fufluns | ||
RUN chown -R user /fufluns && \ | ||
chgrp -R user /fufluns | ||
|
||
USER user | ||
|
||
|