-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (55 loc) · 1.76 KB
/
Copy pathDockerfile
File metadata and controls
61 lines (55 loc) · 1.76 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Use the official Docker Hub Ubuntu latest LTS version base image
FROM ubuntu:18.04
LABEL maintainer "contact@ilyaglotov.com"
ARG COMMIT_TAG=20191220
RUN apt-get update \
\
# Install main deps
&& apt-get -y install git \
libffi-dev \
libfontconfig \
python3-dev \
python3-pip \
python3-psycopg2 \
software-properties-common \
\
# Install Plaso
&& add-apt-repository ppa:gift/stable \
&& apt-get update \
&& apt-get -y install \
plaso-tools \
python-plaso \
\
# Clone latest timesketch repo
&& git clone --branch=$COMMIT_TAG \
--depth=1 \
https://github.com/google/timesketch.git \
/usr/local/src/timesketch \
\
# Install timesketch
&& pip3 install /usr/local/src/timesketch \
\
# Copy the Timesketch configuration file into /etc
&& mkdir /etc/timesketch \
&& cp /usr/local/src/timesketch/data/timesketch.conf /etc/timesketch/ \
&& chmod 644 /etc/timesketch/timesketch.conf \
\
# Clean up
&& apt-get purge -y apt-transport-https \
git \
wget \
libfontconfig \
&& apt-get autoremove -y \
\
&& rm -rf /usr/local/src/timesketch/.git \
/root/.cache \
/var/lib/apt/lists/*
# Copy the entrypoint script into the container
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
# Expose the port used by Timesketch
EXPOSE 5000
# Load the entrypoint script to be run later
ENTRYPOINT ["/docker-entrypoint.sh"]
# Invoke the entrypoint script
CMD ["timesketch"]