#!/bin/bash # 2023-08-14 # ---------------------------------- # Pterodactyl Core Dockerfile Builder # Environment: Java / GraalVM # Minimum Panel Version: 1.7.0 # ---------------------------------- clear cd "$(dirname "$0")" || exit 1 # Docker image name and version IMAGE_BASE=zogg/graalvm IMAGE_NAME_LATEST=${IMAGE_BASE}:latest # Prepare for cross compile export DOCKER_DEFAULT_PLATFORM=linux/amd64 export DOCKER_CLI_EXPERIMENTAL=enabled docker run --privileged --rm tonistiigi/binfmt --install all # Build docker buildx build \ --pull \ --output=type=docker \ --compress \ --network host \ \ --platform=linux/amd64 \ \ --build-arg TZ=Europe/Paris \ --build-arg CONCURRENCY=$(nproc) \ \ -t "${IMAGE_NAME_LATEST}" \ . 2>&1 | tee build.log exit 0