Skip to content

Commit

Permalink
Rizin 0.4.0, apktool 2.6.1 and latest apkid (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio authored Jun 30, 2022
1 parent 8b13163 commit 7f04c42
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 /
Expand All @@ -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

Expand Down

0 comments on commit 7f04c42

Please sign in to comment.