-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (27 loc) · 971 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
38
FROM ubuntu:jammy
LABEL authors vadim@grinco.eu
RUN apt update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:oisf/suricata-stable
RUN apt update
RUN apt dist-upgrade -y
COPY /update.yaml /etc/suricata/update.yaml
COPY /suricata.logrotate /etc/logrotate.d/suricata
RUN apt -y install suricata
RUN suricata-update update-sources && \
suricata-update enable-source oisf/trafficid && \
suricata-update --no-test --no-reload && \
/usr/bin/suricata -V
RUN cp -a /etc/suricata /etc/suricata.dist && \
chmod 600 /etc/logrotate.d/suricata
VOLUME /var/log/suricata
VOLUME /var/lib/suricata
VOLUME /var/run/suricata
VOLUME /etc/suricata
RUN mkdir /app/
RUN wget http://www.mikrotik.com/download/trafr.tgz -O /tmp/trafr.tgz
RUN apt install -y libc6-i386
RUN cd /app/ && tar -zvxf /tmp/trafr.tgz && rm /tmp/trafr.tgz
WORKDIR /app/
COPY ./suricata.sh /app/
RUN chmod 755 /app/suricata.sh
CMD /app/suricata.sh