Merge branch 'feature/KASM-6894-remove-webpack-to-reduce-vulnerabilities' into 'master'

Resolve KASM-6894 "Feature/ remove webpack to reduce vulnerabilities"

Closes KASM-6894

See merge request kasm-technologies/internal/KasmVNC!162
This commit is contained in:
Matthew McClaskey 2025-02-23 00:48:51 +00:00
commit 3e979c51f7
4 changed files with 9 additions and 15 deletions

2
.gitmodules vendored
View File

@ -1,4 +1,4 @@
[submodule "kasmweb"]
path = kasmweb
url = https://github.com/kasmtech/noVNC.git
branch = release/1.2.2
branch = master

View File

@ -1,18 +1,10 @@
#!/bin/bash
#!/bin/sh
# 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 vnc.html
ln -s index.html vnc.html
# copy all to build dir
cp -R ./dist/* /build/

View File

@ -1,6 +1,8 @@
FROM node:12-buster
FROM alpine
COPY kasmweb/ /src/www/
RUN apk add npm nodejs
COPY kasmweb/ /src/www
COPY builder/build_www.sh /src/
WORKDIR /src/www

@ -1 +1 @@
Subproject commit bce2d6a7048025c6e6c05df9d98b206c23f6dbab
Subproject commit 5c46b2e13ab1dd7232b28f017fd7e49ca740f5a4