Skip to content

Commit 4dfc1b2

Browse files
committed
Install Java and jadx in Dockerfile #1812
* Update uv.lock Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 7424073 commit 4dfc1b2

2 files changed

Lines changed: 24 additions & 9 deletions

File tree

Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ WORKDIR $APP_DIR
4545
RUN --mount=type=cache,target=/root/.cache/uv \
4646
--mount=type=bind,source=uv.lock,target=uv.lock \
4747
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
48-
uv sync --frozen --no-install-project
48+
uv sync --extra android_analysis --frozen --no-install-project
4949

5050
# Only re-runs when local code changes
5151
COPY . $APP_DIR
5252
RUN --mount=type=cache,target=/root/.cache/uv \
53-
uv sync --frozen
53+
uv sync --extra android_analysis --frozen
5454

5555
# ============================================
5656
# Stage 2: Production stage (base)
@@ -133,6 +133,15 @@ RUN apt-get update \
133133
&& apt-get install -y --no-install-recommends \
134134
libguestfs-tools \
135135
linux-image-amd64 \
136+
openjdk-17-jre-headless \
137+
unzip \
136138
&& apt-get clean \
137139
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
140+
141+
# Download jadx-1.5.0.zip and extract contents to /usr/bin/ and /usr/lib/
142+
ADD https://github.com/skylot/jadx/releases/download/v1.5.0/jadx-1.5.0.zip /tmp/jadx-1.5.0.zip
143+
RUN unzip -d /usr/ /tmp/jadx-1.5.0.zip && chmod +x /usr/bin/jadx && rm /tmp/jadx-1.5.0.zip
144+
RUN chmod +x /usr/bin/jadx
145+
RUN apt-get purge -y unzip
146+
138147
USER $APP_USER

uv.lock

Lines changed: 13 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)