build_docker_image.sh
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 13 Feb 2023 22:07:57 +0100
changeset 115 b027d8e5b14e
parent 37 fd09116d3537
permissions -rwxr-xr-x
keep pacman happy, even if it can't chroot to run scripts
#!/bin/bash

set -e

OWNDIRBASENAME=$(basename $(cd $(dirname "${BASH_SOURCE[0]}") && pwd))

echo "Building docker image"
docker build \
    --build-arg UID=$(id -u) \
    --build-arg GID=$(id -g) \
    --build-arg OWNDIRBASENAME="$OWNDIRBASENAME" \
    -t beremiz_public_builder .