#!/bin/sh

UI_DIR="$(dirname "$(dirname "$(realpath "$0")")")"
echo "Building all using base directory: $UI_DIR"

cd $UI_DIR
npm install
npm run clean
npm run build
npm run package

cd $UI_DIR
docker build -t apicurio/apicurio-registry-ui:latest-snapshot .
