-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (30 loc) · 1.13 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
36
37
38
39
## https://hub.docker.com/_/debian/tags
FROM debian:12.10-slim
## https://github.com/isc-projects/dhcp/tags
ENV dhcpV="isc-dhcp-server=4.4.3-P1-2"
LABEL org.opencontainers.image.authors="rardcode <sak37564@ik.me>"
LABEL Description="Dhcp server based on Debian."
ARG DEBIAN_FRONTEND=noninteractive
ENV DHCP4=1
ENV DHCP6=0
RUN set -xe && \
: "---------- ESSENTIAL packages INSTALLATION ----------" \
&& apt-get -q -y update \
&& apt-get -q -y -o "DPkg::Options::=--force-confold" -o "DPkg::Options::=--force-confdef" install \
apt-utils \
rsync \
procps \
&& apt-get -q -y autoremove \
&& apt-get -q -y clean \
&& rm -rf /var/lib/apt/lists/*
RUN set -xe && \
: "---------- SPECIFIC packages INSTALLATION ----------" \
&& apt-get -q -y update \
&& apt-get -q -y -o "DPkg::Options::=--force-confold" -o "DPkg::Options::=--force-confdef" install \
${dhcpV} \
&& apt-get -q -y autoremove \
&& apt-get -q -y clean \
&& rm -rf /var/lib/apt/lists/*
ADD rootfs /
ENTRYPOINT ["/entrypoint.sh"]
#CMD ["/usr/sbin/dhcpd -4 -f -d --no-pid -cf /etc/dhcp/dhcpd.conf -lf /etc/dhcp/dhcpd.leases -user dhcpd -group dhcpd"]