#!/bin/bash
BUILD_ARCH=$(echo "${DOCKERFILE_PATH}" | cut -d '.' -f 2)
if [[ ${BUILD_ARCH} == "unstable" ]]; then
BUILD_ARCH=$(echo "${DOCKERFILE_PATH}" | cut -d '.' -f 3)
fi
docker build -f ${DOCKERFILE_PATH} --pull -t ${IMAGE_NAME} .