#!/bin/bash
#echo -e "neuro-home-frontend select"
#echo "neuro-home-frontend" > .select-home-frontend-target
#
#target=$(cat .select-home-frontend-target)

rm -rf ../apps/frontend
cp -av ../frontend ../apps
cp -av ../frontend/package*.json ./
rm -rf ../apps/frontend/node_modules 


docker-compose run --name neuro-home-frontend-build \
  --rm \
  --workdir /apps/frontend/ \
  base-home-main-ds \
  bash -c "npm install &&  npm run build "
 