#!/bin/bash # # https://github.com/VanBerlo/docker-nginx-with-modules # https://github.com/Pon57/docker-php-nginx-mysql-memcached # https://www.nginx.com/resources/wiki/modules/ # https://github.com/bpaquet/ngx_http_enhanced_memcached_module # clear cd "$(dirname "$0")" || exit 1 IMAGE_BASE=zogg/nginx IMAGE_NAME_LATEST=${IMAGE_BASE}:latest export DOCKER_CLI_EXPERIMENTAL=enabled docker run --privileged --rm tonistiigi/binfmt --install all NGINX_VERSION=1.23.1 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) \ --build-arg NGINX_VERSION=$NGINX_VERSION \ -t "${IMAGE_NAME_LATEST}" \ . 2>&1 | tee build.log exit 0