mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-17 18:46:43 +01:00
18 lines
332 B
Bash
Executable file
18 lines
332 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
image="$1"
|
|
|
|
cd .examples/dockerfiles
|
|
|
|
dirs=( */ )
|
|
dirs=( "${dirs[@]%/}" )
|
|
for dir in "${dirs[@]}"; do
|
|
if [ -d "$dir/$VARIANT" ]; then
|
|
(
|
|
cd "$dir/$VARIANT"
|
|
sed -ri -e 's/^FROM .*/FROM '"$image"'/g' 'Dockerfile'
|
|
docker build -t "$image-$dir" .
|
|
)
|
|
fi
|
|
done
|