mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-29 12:41:00 +02:00
21eee5a0ca
- Various minor quote fixes - Optimized repeated echos into php conf for alpine
19 lines
551 B
Bash
Executable File
19 lines
551 B
Bash
Executable File
#!/bin/bash -e
|
|
docker build -f alpine.docker -t diginc/pi-hole:alpine .
|
|
docker tag diginc/pi-hole:alpine diginc/pi-hole:latest
|
|
docker build -f debian.docker -t diginc/pi-hole:debian .
|
|
|
|
IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)
|
|
|
|
# Alternative ports to not conflict with my real instance
|
|
# shellcheck disable=SC2068
|
|
docker run -it --rm --cap-add=NET_ADMIN \
|
|
-p 5053:53/tcp \
|
|
-p 5053:53/udp \
|
|
-p 5080:80 \
|
|
-e ServerIP="$IP" \
|
|
-e VIRTUAL_HOST='pihole.diginc.lan:5080' \
|
|
$@ \
|
|
diginc/pi-hole:"${image:-alpine}"
|
|
|