#! /bin/bash
set -e
docker build -t libass/javascriptsubtitlesoctopus .
docker run -it --rm -v ${PWD}:/code libass/javascriptsubtitlesoctopus:latest

#! /bin/sh
set -e
cd "$(dirname "$0")"
docker build -t libass/javascriptsubtitlesoctopus .
docker run -it --rm -v "${PWD}":/code libass/javascriptsubtitlesoctopus:latest

Make docker build script more portable
Make docker build script more portable

This works with any shell and the directory path may contain spaces.
Also, do no longer require this to be run from the project root.
