Update build.sh

This commit is contained in:
Mehdi Osman 2022-01-26 12:34:26 +01:00 committed by GitHub
parent 52539e7aa2
commit 6277bf6218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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