#!/bin/bash # Get version of Go project from file VERSION=$( /dev/null) || [[ $1 == "--rebuild" ]]; then echo "Image $IMAGE is not present, building it .." docker build -t $IMAGE . fi # we only need MSYS_NO_PATHCONV when running this script in Windows # because otherwise Mingw will try to convert # the given paths and that breaks everything. MSYS_NO_PATHCONV=1 docker run -it --rm -p 8765:8765 $IMAGE