#!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" pushd "${DIR}/.." CONTAINER_NAME=baphomet-dev IMAGE_NAME=baphomet-js IMAGE_TAG=dev IMAGE_BUILD_DIR=. docker build -t ${IMAGE_NAME}:${IMAGE_TAG} ${IMAGE_BUILD_DIR} docker rm ${CONTAINER_NAME} docker run -it \ -e NODE_ENV=development \ -e LOG_LEVEL=debug \ --name ${CONTAINER_NAME} \ ${IMAGE_NAME}:${IMAGE_TAG} popd