#!/bin/bash # # https://hub.docker.com/_/php # https://github.com/mlocati/docker-php-extension-installer # clear cd "$(dirname "$0")" || exit 1 IMAGE_BASE=zogg/php-fpm IMAGE_NAME_LATEST=${IMAGE_BASE}:latest export DOCKER_CLI_EXPERIMENTAL=enabled docker run --privileged --rm tonistiigi/binfmt --install all export DOCKER_DEFAULT_PLATFORM=linux/amd64 docker buildx build --pull \ --platform=linux/amd64 \ --output=type=docker \ --build-arg TZ=Europe/Paris \ --build-arg CONCURRENCY=$(nproc) \ -t "${IMAGE_NAME_LATEST}" \ . 2>&1 | tee build.log exit 0