#!/bin/bash

if [[ $OSTYPE != darwin* ]]; then
    additional_options="-u $(id -u):$(id -g)"
fi
image='node:12'
docker run --rm \
    -it $additional_options \
    -v $(pwd):/tmp/ui_components:delegated \
    -p 6006:6006 \
    -w /tmp/ui_components \
    "${image}" \
        yarn "$@"
