Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: allow installing Ghidra natives #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ FROM openjdk:jdk-slim

ENV GHIDRA_RELEASE_TAG Ghidra_11.0.3_build
ENV GHIDRA_VERSION ghidra_11.0.3_PUBLIC_20240410
ENV GRADLE_VERSION gradle-8.10.1

RUN apt-get update && \
apt-get install -y --no-install-recommends wget unzip fontconfig && \
apt-get install -y --no-install-recommends wget unzip fontconfig make gcc g++ && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand All @@ -13,4 +14,13 @@ RUN wget https://github.com/NationalSecurityAgency/ghidra/releases/download/${GH
rm ${GHIDRA_VERSION}.zip && \
mv ghidra/ghidra_* /opt/ghidra

RUN wget https://services.gradle.org/distributions/${GRADLE_VERSION}-bin.zip && \
unzip -d gradle ${GRADLE_VERSION}-bin.zip && \
rm ${GRADLE_VERSION}-bin.zip && \
mv gradle /opt && \
PATH=$PATH:/opt/gradle/${GRADLE_VERSION}/bin /opt/ghidra/support/buildNatives && \
rm -rf /opt/gradle && \
apt-get remove -y make gcc g++ && \
apt-get autoremove -y

ENV PATH="/opt/ghidra:/opt/ghidra/support:${PATH}"