mirror of https://github.com/jumpserver/jumpserver
13 lines
237 B
Bash
13 lines
237 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
utils_dir=$(dirname "$0")
|
||
|
project_dir=$(dirname "${utils_dir}")
|
||
|
|
||
|
version=$1
|
||
|
if [ -z "$version" ]; then
|
||
|
echo "Usage: sh build version"
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
cd "${project_dir}" && docker build -t "jumpserver/jumpserver:${version}" .
|