mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-20 02:18:51 +00:00
Tini update and arm version
* Noticed: * tini arm is out! Go ARM TINI - thanks @krallin * tini alpine is behind on 0.9 - grabed latest the same way as debians * Redundent run steps between requirements and tini, merged * inconsistency in dockerfiles, made consistent * I kept writing noticed in front of all these items, used nesting instead
This commit is contained in:
@@ -3,13 +3,21 @@ MAINTAINER adam@diginc.us <adam@diginc.us>
|
|||||||
|
|
||||||
ENV IMAGE alpine
|
ENV IMAGE alpine
|
||||||
|
|
||||||
RUN apk add --update \
|
ENV TINI_VERSION v0.13.0
|
||||||
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini
|
||||||
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static.asc /tini.asc
|
||||||
|
|
||||||
|
# Tini and package requirements
|
||||||
|
RUN apk add --update gpgme && \
|
||||||
|
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0527A9B7 && \
|
||||||
|
gpg --verify /tini.asc && \
|
||||||
|
chmod +x /tini && \
|
||||||
|
apk add \
|
||||||
dnsmasq \
|
dnsmasq \
|
||||||
nginx \
|
nginx \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
php5-fpm php5-json php5-openssl libxml2 \
|
php5-fpm php5-json php5-openssl libxml2 \
|
||||||
bc bash curl perl sudo && \
|
bc bash curl perl sudo git && \
|
||||||
apk add --update --repository http://dl-1.alpinelinux.org/alpine/edge/testing/ tini && \
|
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
# Customized from submodules
|
# Customized from submodules
|
||||||
@@ -76,5 +84,5 @@ ENV IPv6 True
|
|||||||
EXPOSE 53 53/udp
|
EXPOSE 53 53/udp
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
ENTRYPOINT ["tini", "--"]
|
ENTRYPOINT ["/tini", "--"]
|
||||||
CMD /start.sh
|
CMD [ "/start.sh" ]
|
||||||
|
|||||||
@@ -4,14 +4,21 @@ MAINTAINER adam@diginc.us <adam@diginc.us>
|
|||||||
RUN [ "cross-build-start" ]
|
RUN [ "cross-build-start" ]
|
||||||
ENV IMAGE debian
|
ENV IMAGE debian
|
||||||
|
|
||||||
# Requirements
|
ENV TINI_VERSION v0.13.0
|
||||||
RUN apt-get -q update && \
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-armhf /tini
|
||||||
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-armhf.asc /tini.asc
|
||||||
|
|
||||||
|
# Tini and package requirements
|
||||||
|
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0527A9B7 && \
|
||||||
|
gpg --verify /tini.asc && \
|
||||||
|
chmod +x /tini && \
|
||||||
|
apt-get -q update && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
dnsmasq \
|
dnsmasq \
|
||||||
lighttpd \
|
lighttpd \
|
||||||
php5-common php5-cgi php5 \
|
php5-common php5-cgi php5 \
|
||||||
bc curl unzip wget sudo dnsutils && \
|
bc curl unzip wget sudo dnsutils && \
|
||||||
rm -rf /var/cache/apt/archives
|
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Original upstream pihole code being used
|
# Original upstream pihole code being used
|
||||||
COPY ./pi-hole/gravity.sh /usr/local/bin/
|
COPY ./pi-hole/gravity.sh /usr/local/bin/
|
||||||
@@ -70,7 +77,7 @@ EXPOSE 53 53/udp
|
|||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
# Tini doesn't work in ARM
|
# Tini doesn't work in ARM
|
||||||
ENTRYPOINT [ "bash", "-c" ]
|
ENTRYPOINT ["/tini", "--"]
|
||||||
CMD [ "/start.sh" ]
|
CMD [ "/start.sh" ]
|
||||||
|
|
||||||
RUN [ "cross-build-end" ]
|
RUN [ "cross-build-end" ]
|
||||||
|
|||||||
@@ -3,21 +3,21 @@ MAINTAINER adam@diginc.us <adam@diginc.us>
|
|||||||
|
|
||||||
ENV IMAGE debian
|
ENV IMAGE debian
|
||||||
|
|
||||||
ENV TINI_VERSION v0.10.0
|
ENV TINI_VERSION v0.13.0
|
||||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
||||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini.asc /tini.asc
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini.asc /tini.asc
|
||||||
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0527A9B7 \
|
|
||||||
&& gpg --verify /tini.asc
|
|
||||||
RUN chmod +x /tini
|
|
||||||
|
|
||||||
# Requirements
|
# Tini and package requirements
|
||||||
RUN apt-get -q update && \
|
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0527A9B7 && \
|
||||||
|
gpg --verify /tini.asc && \
|
||||||
|
chmod +x /tini && \
|
||||||
|
apt-get -q update && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
dnsmasq \
|
dnsmasq \
|
||||||
lighttpd \
|
lighttpd \
|
||||||
php5-common php5-cgi php5 \
|
php5-common php5-cgi php5 \
|
||||||
bc curl unzip wget sudo dnsutils && \
|
bc curl unzip wget sudo dnsutils && \
|
||||||
rm -rf /var/cache/apt/archives
|
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Original upstream pihole code being used
|
# Original upstream pihole code being used
|
||||||
COPY ./pi-hole/gravity.sh /usr/local/bin/
|
COPY ./pi-hole/gravity.sh /usr/local/bin/
|
||||||
@@ -76,4 +76,4 @@ EXPOSE 53 53/udp
|
|||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
ENTRYPOINT ["/tini", "--"]
|
ENTRYPOINT ["/tini", "--"]
|
||||||
CMD /start.sh
|
CMD [ "/start.sh" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user