-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuricataDockerfile
34 lines (27 loc) · 948 Bytes
/
suricataDockerfile
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
FROM ubuntu:latest
RUN apt update && apt upgrade -y
ENV DEBIAN_FRONTEND=noninteractive
RUN apt install openssh-server sudo nano vim software-properties-common iproute2 -y
RUN sudo add-apt-repository ppa:oisf/suricata-stable
RUN sudo apt install suricata jq -y
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test
RUN echo 'test:test' | chpasswd
RUN service ssh start
EXPOSE 22
CMD ["/usr/sbin/sshd","-D"]
/////////////////////////with http/////////////////////////
#FROM ubuntu:latest
#
#RUN apt update --fix-missing && apt upgrade -y
#ENV DEBIAN_FRONTEND=noninteractive
#RUN apt install apache2 openssh-server sudo nano vim software-properties-common -y
#RUN sudo add-apt-repository ppa:oisf/suricata-stable
#RUN sudo apt install suricata jq -y
#
#RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test
#
#RUN echo 'test:test' | chpasswd
#
#EXPOSE 80
#
#CMD ["apachectl", "-D", "FOREGROUND"]