22 lines
495 B
Bash
Executable File
22 lines
495 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. CONFIG.sh
|
|
|
|
# set -o xtrace ## To debug scripts
|
|
# set -o errexit ## To exit on error
|
|
# set -o errunset ## To exit if a variable is referenced but not set
|
|
|
|
|
|
function main() {
|
|
SCRIPTPATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )"
|
|
echo "Working Dir: " $(pwd)
|
|
|
|
podman build \
|
|
--build-arg USERNAME="${USER}" \
|
|
--build-arg UID=$(id -u) \
|
|
--build-arg GID=$(id -g) \
|
|
-t "${CONTAINER}" \
|
|
-f ./Dockerfile
|
|
}
|
|
main $@;
|