2019-05-21 02:02:53 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ $# -eq 0 ]
|
|
|
|
then
|
2019-10-25 22:38:43 +02:00
|
|
|
echo "Usage: <script> <uid> <gid>"
|
2019-05-21 02:02:53 +02:00
|
|
|
else
|
2019-10-25 22:38:43 +02:00
|
|
|
puid=$1
|
|
|
|
pgid=$2
|
2019-10-25 23:19:30 +02:00
|
|
|
|
|
|
|
cd builder
|
|
|
|
docker build --tag caddy-builder .
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
docker build --build-arg PUID=$puid --build-arg PGID=$pgid --tag caddy-custom .
|
2019-05-21 02:02:53 +02:00
|
|
|
fi
|