Update build.sh
This commit is contained in:
parent
52539e7aa2
commit
6277bf6218
1 changed files with 1 additions and 6 deletions
|
|
@ -18,14 +18,9 @@ check_prereq() {
|
|||
}
|
||||
|
||||
function build(){
|
||||
# Copy enterprise code
|
||||
[[ $1 == "ee" ]] && {
|
||||
cp ../ee/frontend/* ./
|
||||
ee="true"
|
||||
}
|
||||
# Run docker as the same user, else we'll run in to permission issues.
|
||||
docker run --rm -v /etc/passwd:/etc/passwd -u `id -u`:`id -g` -v $(pwd):/home/${USER} -w /home/${USER} --name node_build node:14-stretch-slim /bin/bash -c "npm install && npm run build:oss"
|
||||
}
|
||||
|
||||
check_prereq
|
||||
build $1
|
||||
build $1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue