From a797ffbc4dee4c2b193e4afb9887cbaf186f8640 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Mon, 9 May 2022 14:51:15 +0800 Subject: [PATCH] chore: add a script to build ui Signed-off-by: Jianhui Zhao --- ui/build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 ui/build.sh diff --git a/ui/build.sh b/ui/build.sh new file mode 100755 index 0000000..6ee71ca --- /dev/null +++ b/ui/build.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +sudo docker run -it \ + -v /etc/group:/etc/group:ro \ + -v /etc/passwd:/etc/passwd:ro \ + -v /etc/shadow:/etc/shadow:ro \ + -v $HOME:$HOME \ + -u $(id -u):$(id -g) \ + -w $(pwd) \ + --rm \ + node:12 \ + npm $*