-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathDockerfile
23 lines (19 loc) · 976 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM --platform=linux/amd64 ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# install java, python, and some utils
RUN apt-get update && apt-get -o APT::Immediate-Configure=0 install -y \
python3-dev python3-pip openjdk-17-jdk unzip sed wget \
&& rm -rf /var/lib/apt/lists/*
# install ghidra 10.4 and patch the launch script to work in containers
RUN mkdir tools && mkdir /root/ghidra_scripts/
ENV PATH "/tools/:$PATH"
WORKDIR tools
RUN wget https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.4_build/ghidra_10.4_PUBLIC_20230928.zip && \
unzip ghidra_10.4_PUBLIC_20230928.zip && \
sed -i 's/java -cp/java -Djdk.lang.Process.launchMechanism=vfork -cp/g' /tools/ghidra_10.4_PUBLIC/support/launch.sh
# copy the local pip project, install it, its plugins, and the models
workdir /
COPY . /DAILA/
RUN pip3 install --upgrade pip \
&& pip3 install -e ./DAILA \
&& daila --single-decompiler-install ghidra /root/ghidra_scripts/