forked from bytehow/docker-ghidra-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
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:11-jdk-slim
ENV VERSION 10.1.5_PUBLIC
ENV DL https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.1.5_build/ghidra_10.1.5_PUBLIC_20220726.zip
ENV GHIDRA_SHA 17db4ba7d411d11b00d1638f163ab5d61ef38712cd68e462eb8c855ec5cfb5ed
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"]