1
0
mirror of https://github.com/chylex/My-Server-Docker-Setup.git synced 2024-10-17 03:42:48 +02:00
My-Server-Docker-Setup/.images/build.sh
2022-05-16 13:25:00 +02:00

17 lines
370 B
Bash
Executable File

#!/bin/bash
set -e
BASE=/app/.images
if [[ "$1" == "" ]] || [[ "$1" == "nginx-proxy" ]]; then
echo "Building local/nginx-proxy..."
docker build --pull -t local/nginx-proxy "$BASE/nginx-proxy"
fi
if [[ "$1" == "" ]] || [[ "$1" == "db-backup" ]]; then
echo "Building local/db-backup..."
docker build --pull -t local/db-backup "$BASE/db-backup"
fi
echo "Done!"