Add support for building ubuntu:20.04-based docker images + some automation

This commit is contained in:
Vadim Ushakov 2021-11-06 20:33:19 +07:00
parent f7372fc393
commit 348a4b0865
9 changed files with 200 additions and 55 deletions

11
build-docker-images.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
set -e
prefix="${1:-local/}"
for dokerfile in dockerfiles/Dockerfile.* ; do
suffix="`echo "$dokerfile" | sed 's/.*\/Dockerfile\.//'`"
image_name="${prefix}zeronet:$suffix"
echo "DOCKER BUILD $image_name"
docker build -f "$dokerfile" -t "$image_name" .
done