]> git.ipfire.org Git - thirdparty/lldpd.git/blame - Dockerfile
include: add back include/linux for old distributions
[thirdparty/lldpd.git] / Dockerfile
CommitLineData
a244ecfb
VB
1FROM alpine:latest AS build
2RUN apk add autoconf automake libtool \
3 libevent-dev libxml2-dev jansson-dev \
4 readline-dev libcap-dev alpine-sdk
5WORKDIR /build
6COPY . .
7RUN ./autogen.sh
8RUN ./configure \
9 --prefix=/usr \
10 --sysconfdir=/etc \
11 --enable-pie \
12 --enable-hardening \
13 --without-embedded-libevent \
14 --without-snmp \
15 --with-xml \
16 --with-privsep-user=_lldpd \
17 --with-privsep-group=_lldpd \
18 --with-privsep-chroot=/run/lldpd \
19 --with-lldpd-ctl-socket=/run/lldpd.socket \
20 --with-lldpd-pid-file=/run/lldpd.pid
21RUN make
22RUN make install DESTDIR=/lldpd
23
24FROM alpine:latest
25RUN apk add libevent libxml2 jansson readline libcap \
26 && addgroup -S _lldpd \
27 && adduser -S -G _lldpd -D -H -g "lldpd user" _lldpd
28COPY --from=build /lldpd /
29VOLUME /etc/lldpd.d
30ENTRYPOINT ["lldpd", "-d"]
31CMD []
32