KasmVNC/builder/build-tarball
2021-01-14 21:25:41 +13:00

23 lines
532 B
Bash
Executable File

#!/bin/bash
set -e
build_www_dir() {
docker build -t kasmweb/www -f builder/dockerfile.www.build .
docker run -it --rm -v $PWD/builder/www:/build kasmweb/www:latest
}
cd "$(dirname "$0")/.."
build_www_dir
docker pull ubuntu:18.04
docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.ubuntu1804.build .
mkdir -p builder/build
docker run -v /tmp:/build --rm kasmvncbuilder:18.04
L_GID=$(id -g)
L_UID=$(id -u)
chown $L_UID:$L_GID /tmp/kasmvnc.ubuntu_18.04.tar.gz
mv /tmp/kasmvnc.ubuntu_18.04.tar.gz $PWD/builder/build/