-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
37 lines (29 loc) · 888 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
29
30
31
32
33
34
35
36
37
FROM ubuntu:18.04
# Configure timezone so apt behaves
RUN echo "UTC" > /etc/timezone
RUN rm -f /etc/localtime
RUN apt-get update -y \
&& apt-get install -y tzdata
RUN dpkg-reconfigure -f noninteractive tzdata
# Install Ghidra into /tools
RUN apt-get install -y sudo tmux curl unzip openjdk-11-jdk openjdk-11-jre-headless gdb \
&& apt-get clean -y
RUN mkdir -p /tools/ghidra
WORKDIR /tools/ghidra
RUN curl "https://ghidra-sre.org/ghidra_9.1.2_PUBLIC_20200212.zip" -o ghidra.zip
RUN unzip ghidra.zip
RUN rm ghidra.zip
# Run the setup.sh script
RUN mkdir /remenissions
WORKDIR /remenissions
COPY . .
RUN chmod +x setup.sh
RUN ./setup.sh
# Link remenissions to path
RUN ln -s /remenissions/remenissions /usr/local/bin/remenissions
# Link python to python3
RUN ln -s $(which python3) /usr/local/bin/python
# Make shared folder
RUN mkdir -p /shared
WORKDIR /shared
CMD ["tmux"]