Skip to content

Commit fc7e774

Browse files
ledestinmattmcclaskey
authored andcommitted
Resolve KASM-6894 "Feature/ remove webpack to reduce vulnerabilities"
1 parent 5ea11df commit fc7e774

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "kasmweb"]
22
path = kasmweb
33
url = https://github.com/kasmtech/noVNC.git
4-
branch = release/1.2.2
4+
branch = master

builder/build_www.sh

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
# clear previous build
44
rm -rf /build/*
55

66
# build webpack
77
npm run build
8-
# remove node stuff from directory
9-
rm -rf node_modules/
10-
# copy all to build dir
11-
cp -R ./* /build/
128

13-
# remove unneccesary files
14-
cd /build
15-
rm *.md
16-
rm AUTHORS
17-
rm vnc.html
18-
ln -s index.html vnc.html
9+
# copy all to build dir
10+
cp -R ./dist/* /build/

builder/dockerfile.www.build

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
FROM node:12-buster
1+
FROM alpine
22

3-
COPY kasmweb/ /src/www/
3+
RUN apk add npm nodejs
4+
5+
COPY kasmweb/ /src/www
46
COPY builder/build_www.sh /src/
57

68
WORKDIR /src/www

0 commit comments

Comments
 (0)