forked from ossec/ossec-hids
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
26 lines (24 loc) · 773 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
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get --yes install \
sudo \
curl \
wget \
git \
build-essential \
debhelper \
libssl-dev \
linux-libc-dev \
libpcre2-dev \
pbuilder \
expect \
debconf \
qemu-user-static
COPY ./debian_files /home/ubuntu/debian_files
COPY . /home/ubuntu/ossec-hids
# `docker build` cannot handle `pbuilder create` because it uses `mount` which needs privilege
# RUN /home/ubuntu/ossec-hids/contrib/debian-packages/generate_ossec.sh -d
# RUN /home/ubuntu/ossec-hids/contrib/debian-packages/generate_ossec.sh -u
# RUN /home/ubuntu/ossec-hids/contrib/debian-packages/generate_ossec.sh -b
CMD ["/bin/sh"]