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

This commit is contained in:
Dmitry Maksyoma 2025-02-23 00:48:51 +00:00 committed by Matthew McClaskey
parent 5ea11df3c0
commit fc7e77499a
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