docker-pi-hole/Dockerfile_debian_aarch64

45 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-01-26 22:47:20 +01:00
FROM multiarch/debian-debootstrap:arm64-stretch-slim
LABEL image="diginc/pi-hole:debian_aarch64"
2017-10-02 06:33:15 +02:00
LABEL maintainer="adam@diginc.us"
LABEL url="https://www.github.com/diginc/docker-pi-hole"
ENV TAG debian
ENV ARCH aarch64
ENV PATH /opt/pihole:${PATH}
COPY install.sh /usr/local/bin/docker-install.sh
ENV setupVars /etc/pihole/setupVars.conf
ENV PIHOLE_INSTALL /tmp/ph_install.sh
2018-01-05 05:30:40 +01:00
ENV S6OVERLAY_RELEASE https://github.com/just-containers/s6-overlay/releases/download/v1.21.2.2/s6-overlay-aarch64.tar.gz
RUN apt-get update && \
2018-01-26 22:47:20 +01:00
apt-get install -y wget curl net-tools cron procps && \
curl -L -s $S6OVERLAY_RELEASE \
| tar xvzf - -C / && \
docker-install.sh && \
2018-01-27 04:10:56 +01:00
rm -rf /var/cache/apt/archives /var/lib/apt/lists/* && \
mv /init /s6-init
2018-01-27 04:10:56 +01:00
ENTRYPOINT [ "/s6-init" ]
ADD s6/debian-root /
COPY s6/service /usr/local/bin/service
# php config start passes special ENVs into
ENV PHP_ENV_CONFIG '/etc/lighttpd/conf-enabled/15-fastcgi-php.conf'
ENV PHP_ERROR_LOG '/var/log/lighttpd/error.log'
COPY ./start.sh /
COPY ./bash_functions.sh /
# IPv6 disable flag for networks/devices that do not support it
ENV IPv6 True
EXPOSE 53 53/udp
EXPOSE 80
ENV S6_LOGGING 0
ENV S6_KEEP_ENV 1
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS 2
SHELL ["/bin/bash", "-c"]