-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (27 loc) · 805 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
27
28
29
30
31
32
33
34
35
36
37
# Define an ARG for the base image tag
ARG BASE_IMG_TAG=none
FROM pihole/pihole:${BASE_IMG_TAG}
ENV \
USER=bind \
GROUP=bind
# install
RUN set -eux \
&& apt update \
&& apt install --no-install-recommends --no-install-suggests -y \
bind9 \
&& apt purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -r /var/lib/apt/lists/* \
&& mkdir /var/log/named \
&& chown bind:bind /var/log/named \
&& chmod 0755 /var/log/named
# copy extra files
COPY lighttpd-external.conf /etc/lighttpd/external.conf
COPY 99-edns.conf /etc/dnsmasq.d/99-edns.conf
COPY ./data/docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
# set version label
LABEL maintainer="OrigamiOfficial"
# environment settings
ENV PIHOLE_DNS_ 127.0.0.1#5335
# target run
CMD ["/docker-entrypoint.sh"]