1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

unify dockerfiles

This commit is contained in:
Robin Appelman 2021-12-15 16:53:27 +01:00
commit 92d2ab4a82
9 changed files with 30 additions and 302 deletions

View file

@ -4,14 +4,12 @@ versions=("7.2" "7.3" "7.4" "8.0")
for version in "${versions[@]}"; do
echo "building haze-php-$version"
docker build --build-arg PHP_VERSION=$version -t "icewind1991/haze-php:$version" -f "php/Dockerfile.$version" php
docker build --build-arg PHP_VERSION=$version -t "icewind1991/haze-php:$version" -f "php/Dockerfile" php
done
for version in "${versions[@]}"; do
echo "building haze-$version"
cp haze/Dockerfile.tmpl haze/Dockerfile
sed -i "s/<version>/$version/" haze/Dockerfile
docker build -t "icewind1991/haze:$version" -f "haze/Dockerfile" haze
docker build --build-arg PHP_VERSION=$version -t "icewind1991/haze:$version" -f "haze/Dockerfile" haze
done
docker build -t "icewind1991/haze-ldap" -f "ldap/Dockerfile" ldap