forked from johnameen/docker-ghidra-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (22 loc) · 1.04 KB
/
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
29
FROM openjdk:11-jdk-slim
ENV VERSION=10.1.2
ENV FILE_NAME=ghidra_${VERSION}_PUBLIC_20220125.zip
ENV DL https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_${VERSION}_build/${FILE_NAME}
ENV GHIDRA_SHA256 ac96fbdde7f754e0eb9ed51db020e77208cdb12cf58c08657a2ab87cb2694940
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_SHA256 /tmp/ghidra.zip" | sha256sum -c - \
&& unzip /tmp/ghidra.zip \
&& mv ghidra_${VERSION}_PUBLIC /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"]