-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.bind9
More file actions
31 lines (22 loc) · 1.02 KB
/
Dockerfile.bind9
File metadata and controls
31 lines (22 loc) · 1.02 KB
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
FROM debian:buster-slim AS bind9
RUN apt-get update \
&& apt-get install -y bind9 gosu \
&& find /var/cache/apt /var/lib/apt -type f -delete \
&& true
COPY scripts/adjust-user scripts/adjust-term scripts/entrypoint scripts/exec /usr/local/share/container/scripts/
COPY entrypoint/bind9 /usr/local/share/container/entrypoint/
COPY bin/container-user bin/local-user /usr/local/share/container/bin/
EXPOSE 53/tcp 53/udp
#ENV CONTAINER_USER bind
#ENV CONTAINER_GROUP bind
ENTRYPOINT ["/usr/local/share/container/scripts/entrypoint", "/usr/local/share/container/entrypoint/bind9"]
CMD ["/usr/sbin/named", "-u", "bind", "-g"]
FROM debian:buster-slim AS tools
RUN apt-get update \
&& apt-get install -y gosu bind9-host whois \
&& find /var/cache/apt /var/lib/apt -type f -delete \
&& true
COPY scripts/adjust-user scripts/adjust-term scripts/entrypoint scripts/exec /usr/local/share/container/scripts/
COPY bin/local-user /usr/local/share/container/bin/
ENTRYPOINT ["/usr/local/share/container/scripts/entrypoint"]
CMD ["sleep", "infinity"]