2022-12-29 12:47:41 +00:00
|
|
|
FROM docker.io/buildpack-deps:bullseye-scm
|
2021-04-15 13:59:10 +00:00
|
|
|
|
2022-12-29 20:13:00 +00:00
|
|
|
RUN apt-get update && apt-get -y --no-install-recommends install systemd systemd-sysv
|
2022-11-29 22:24:31 +00:00
|
|
|
|
2021-04-15 13:59:10 +00:00
|
|
|
ENV GITDIR /etc/.pihole
|
|
|
|
ENV SCRIPTDIR /opt/pihole
|
|
|
|
|
|
|
|
RUN mkdir -p $GITDIR $SCRIPTDIR /etc/pihole
|
|
|
|
ADD . $GITDIR
|
|
|
|
RUN cp $GITDIR/advanced/Scripts/*.sh $GITDIR/gravity.sh $GITDIR/pihole $GITDIR/automated\ install/*.sh $SCRIPTDIR/
|
|
|
|
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$SCRIPTDIR
|
|
|
|
|
|
|
|
RUN true && \
|
|
|
|
chmod +x $SCRIPTDIR/*
|
|
|
|
|
2022-07-06 20:58:14 +00:00
|
|
|
ENV SKIP_INSTALL true
|
2021-04-15 13:59:10 +00:00
|
|
|
ENV OS_CHECK_DOMAIN_NAME dev-supportedos.pi-hole.net
|
|
|
|
|
2022-11-29 22:24:31 +00:00
|
|
|
CMD ["/bin/systemd"]
|