% if [[ $REBUILD == "packages" ]]; then echo "## Busting Cache, Forcing Rebuild $(date)" fi % echo -e "\n ************************************************* \n" echo "Building Image from Base: $BASE_IMAGE" echo "Distro: $LINUX_DISTRO" echo " ---- running packages install script ---" if [[ $LINUX_DISTRO == "alpine" ]]; then echo "-------------------------------" echo "adding shadow bash and bash completion coreutils for alpine" echo "to be compatible with other distros" apk add --no-cache shadow bash bash-completion coreutils echo "-------------------------------" fi cd packages /bin/sh ./packages.sh cd .. echo -e "\n********************************************************"