forked from RedSiege/EyeWitness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (22 loc) · 795 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
FROM phusion/baseimage
LABEL maintainer Netanel Ravid
ARG user=eyewitness
RUN apt-get update && \
apt-get install -y git wget && \
rm -rf /var/lib/apt/lists/*
RUN export uid=1000 gid=1000 && \
mkdir -p /home/$user && \
echo "$user:x:${uid}:${gid}:$user,,,:/home/$user:/bin/bash" >> /etc/passwd && \
echo "$user:x:${uid}:" >> /etc/group && \
chown ${uid}:${gid} -R /home/$user
WORKDIR /home/$user
RUN git clone https://github.com/ChrisTruncer/EyeWitness.git
WORKDIR /home/$user/EyeWitness
RUN cd setup && \
./setup.sh && \
cd .. && \
chown -R $user:$user /home/$user/EyeWitness && \
mkdir -p /tmp/EyeWitness && \
chown $user:$user /tmp/EyeWitness
USER $user
ENTRYPOINT ["python3", "EyeWitness.py", "-d", "/tmp/EyeWitness/results", "--no-prompt"]