forked from firewalld/firewalld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (29 loc) · 1.01 KB
/
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
FROM quay.io/centos/centos:stream8
LABEL description="Firewalld daemon and command line interface"
MAINTAINER Firewalld Maintainers <[email protected]>
# firewalld build/runtime dependencies
#
RUN dnf -y install automake autoconf make intltool \
docbook-style-xsl python3-nftables \
python3-gobject-base libxslt glib2-devel
# firewalld testsuite dependencies
#
RUN dnf -y install diffutils procps iproute dbus-daemon python3-devel
# build firewalld
#
COPY . /tmp/firewalld
RUN cd /tmp/firewalld \
&& ./autogen.sh \
&& ./configure --prefix=/usr PYTHON=/usr/libexec/platform-python \
&& make \
&& make install \
&& rm -rf /tmp/firewalld
# remove build dependencies
#
RUN dnf -y remove automake autoconf make intltool \
docbook-style-xsl libxslt glib2-devel \
&& dnf -y autoremove \
&& dnf clean all
COPY ./config/FirewallD.conf /usr/share/dbus-1/system.d/
COPY ./docker_start.sh /root/
CMD ["bash", "/root/docker_start.sh"]