Authored by jimi.ji

Update docker.sh

Showing 1 changed file with 5 additions and 10 deletions
#!/bin/bash
wordir=$2
needBuild=$1
cd $wordir
rm -rf yohobuy-node.tar.gz
yarn
if [[ $1 == "test1" ]] || [[ $1 == "test2" ]] || [[ $1 == "test3" ]]
then
yarn --production=false
if [ "$needBuild" == "YES" ];then
yarn build
fi
node-prune
tar -czf yohobuy-node.tar.gz *
yarn build:node --build=$needBuild
/usr/local/bin/node-prune ./dist/node/node_modules
... ...