build_docker_image.sh
author etisserant <edouard.tisserant@gmail.com>
Fri, 03 Mar 2023 19:17:30 +0100
changeset 118 99fad4ed7ed4
parent 37 fd09116d3537
permissions -rwxr-xr-x
Beremiz revision bump
#!/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 .