mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-17 22:56:21 +00:00
18 lines
377 B
Bash
Executable file
18 lines
377 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Docker build
|
|
# Optional buildtag
|
|
# DOCKER_BUILDKIT=1 \
|
|
# docker build . \
|
|
# --build-arg debug=${debug:-""} \
|
|
# --tag ${buildtag:-myvnc/novnc}
|
|
case ${2} in
|
|
build) build="--build"
|
|
;;
|
|
esac
|
|
|
|
if [[ ${1} =~ ^[0-9]+$ ]]
|
|
then
|
|
MYVNC_NOVNC_VNCSSH_PORT=${1} docker compose up ${build} --detach
|
|
else
|
|
docker compose up ${build} --detach
|
|
fi
|