forked from blacktop/docker-ghidra
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
28 lines (21 loc) · 1019 Bytes
/
Dockerfile
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
FROM openjdk:17-jdk-slim
ENV VERSION 11.0.3_PUBLIC
ENV DL https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.0.3_build/ghidra_11.0.3_PUBLIC_20240410.zip
ENV GHIDRA_SHA 2462a2d0ab11e30f9e907cd3b4aa6b48dd2642f325617e3d922c28e752be6761
RUN apt-get update && apt-get install -y wget unzip dnsutils --no-install-recommends \
&& wget --progress=bar:force -O /tmp/ghidra.zip ${DL} \
&& echo "$GHIDRA_SHA /tmp/ghidra.zip" | sha256sum -c - \
&& unzip /tmp/ghidra.zip \
&& mv ghidra_${VERSION} /ghidra \
&& chmod +x /ghidra/ghidraRun \
&& echo "===> Clean up unnecessary files..." \
&& apt-get purge -y --auto-remove wget unzip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives /tmp/* /var/tmp/* /ghidra/docs /ghidra/Extensions/Eclipse /ghidra/licenses
WORKDIR /ghidra
COPY entrypoint.sh /entrypoint.sh
COPY server.conf /ghidra/server/server.conf
EXPOSE 13100 13101 13102
RUN mkdir /repos
ENTRYPOINT ["/entrypoint.sh"]
CMD ["server"]