#!/usr/bin/env sh
echo "Build docker image."

# This make sure cd rails root as current workign dir.
cd "$(dirname "$0")"
cd ..
# branch=`git branch --show-current`
branch="master"
echo "Update code from remote repo [$branch] branch."
git pull origin $branch

echo "Start build docker image."
docker build -t asclepius-backend .

echo "Build success, available images:"
docker image ls
