-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 1.87 KB
/
Copy pathDockerfile
File metadata and controls
34 lines (27 loc) · 1.87 KB
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
FROM python:3.12-slim-bookworm
# ── system deps ───────────────────────────────────────────────────────────────
RUN apt-get update && apt-get install -y --no-install-recommends \
openjdk-17-jre-headless \
wget \
unzip \
git \
&& rm -rf /var/lib/apt/lists/*
# ── JADX ──────────────────────────────────────────────────────────────────────
ARG JADX_VERSION=1.5.0
RUN wget -q "https://github.com/skylot/jadx/releases/download/v${JADX_VERSION}/jadx-${JADX_VERSION}.zip" \
-O /tmp/jadx.zip \
&& unzip -q /tmp/jadx.zip -d /opt/jadx \
&& ln -s /opt/jadx/bin/jadx /usr/local/bin/jadx \
&& rm /tmp/jadx.zip
# ── APKLeaks ──────────────────────────────────────────────────────────────────
RUN pip install --no-cache-dir apkleaks
# ── Python deps ───────────────────────────────────────────────────────────────
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ── App ───────────────────────────────────────────────────────────────────────
COPY analyze.py tools.py filter.py analyst.py report.py ./
# Volumes: /data/input (APK), /data/output (reports)
RUN mkdir -p /data/input /data/output
ENTRYPOINT ["python", "analyze.py"]
CMD ["--help"]