#! /bin/sh
#Builds a docker image for building sphinx documentation.
#Needs to be run from root of the project directory.
cd $(dirname $0)/..

IMAGE=${DOCBUILDER_IMAGE:=gitlab.catalyst.net.nz:4567/riskscape/riskscape/docbuilder}

docker build \
       --build-arg BASE_IMAGE \
       docs \
       --tag $IMAGE
