added dockerfile build process for www

This commit is contained in:
matt
2021-01-10 19:03:13 +00:00
parent d71734a206
commit 76f8d905f0
3 changed files with 32 additions and 3 deletions

19
builder/build_www.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# clear previous build
rm -rf /build/*
# build webpack
npm run build
# remove node stuff from directory
rm -rf node_modules/
# copy all to build dir
cp -R ./* /build/
# remove unneccesary files
cd /build
rm *.md
rm AUTHORS
rm *.yml
rm vnc.html
rm vnc_lite.html