dockerfiles/build.sh
Jan Dittberner 5b73173912 Implement support for multiple PHP versions
This commit provides docker images and scripts to support multiple
Debian and PHP releases via containers.
2018-11-11 14:02:05 +01:00

12 lines
421 B
Bash
Executable file

#!/bin/sh
set -e
for dist in wheezy_php5 jessie_php5 stretch_php7 buster_php7; do
docker build --pull -t gnuviech/${dist}-base ${dist} -f ${dist}/Dockerfile-base
docker build -t gnuviech/${dist} ${dist} -f ${dist}/Dockerfile
docker build -t gnuviech/${dist}-mysql ${dist} -f ${dist}/Dockerfile-mysql
docker build -t gnuviech/${dist}-pgsql ${dist} -f ${dist}/Dockerfile-pgsql
done
docker image prune -f