forked from louisgthier/decompai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.runner
More file actions
38 lines (28 loc) · 1.09 KB
/
Dockerfile.runner
File metadata and controls
38 lines (28 loc) · 1.09 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
35
36
37
38
# Use the official GCC image
# FROM gcc_linux_x86_64:latest
FROM kalilinux/kali-rolling:latest AS base
RUN apt update && apt -y install kali-linux-headless && rm -rf /var/lib/apt/lists/*
# Set environment variables for Ghidra
ENV GHIDRA_VERSION=11.3.1
ENV GHIDRA_HOME=/opt/ghidra
ENV GHIDRA_URL=https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.3.1_build/ghidra_11.3.1_PUBLIC_20250219.zip
# Download and install Ghidra
RUN wget -O /tmp/ghidra.zip $GHIDRA_URL && \
unzip /tmp/ghidra.zip -d /opt && \
rm /tmp/ghidra.zip && \
mv /opt/ghidra_${GHIDRA_VERSION}_PUBLIC $GHIDRA_HOME
# Add Ghidra to PATH
ENV PATH="$GHIDRA_HOME:$GHIDRA_HOME/support:$PATH"
# # Install Java (required for Ghidra)
RUN apt-get update && apt-get install -y openjdk-21-jdk wget unzip && \
rm -rf /var/lib/apt/lists/*
# Install ninja and meson
RUN apt-get update && apt-get install -y ninja-build meson pkg-config && \
rm -rf /var/lib/apt/lists/*
# Install r2dec
RUN r2pm -U && \
r2pm -i r2dec && \
r2pm -ci r2ghidra
WORKDIR /
# Command to keep the container alive (if needed)
CMD ["bash"]