# copy XDG_RUNTIME_DIR if set
if [ "$XDG_RUNTIME_DIR" != "" ]; then
local_conf="$local_conf -e XDG_RUNTIME_DIR='$XDG_RUNTIME_DIR'"
fi
docker build -t "${image_name}" --pull=true "${image_path}"
# copy XDG_RUNTIME_DIR if set
if [ "$XDG_RUNTIME_DIR" != "" ]; then
local_conf="$local_conf -e XDG_RUNTIME_DIR='$XDG_RUNTIME_DIR'"
fi
docker build -t "${image_name}" --pull=true "${image_path}"