#!/bin/bash
BRANCH=$(git branch --show-current)
BUILD_DATE=$(date "+%s")
COMMIT_SHA1=$(git rev-parse HEAD)
docker build -t lihe-control.com/iot-www:${BRANCH}-${COMMIT_SHA1:0:8}-${BUILD_DATE} -f Dockerfile .