From 7f04c42aaa511aa04bfb041d3d5f9bd5a121d601 Mon Sep 17 00:00:00 2001 From: Giovanni <561184+wargio@users.noreply.github.com> Date: Thu, 30 Jun 2022 22:58:40 +0200 Subject: [PATCH] Rizin 0.4.0, apktool 2.6.1 and latest apkid (#12) --- Dockerfile | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 68d7de0..809fe06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/yara-python.git@v3.11.0 && \ - 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