mirror of
https://github.com/cnrancher/kube-explorer.git
synced 2025-05-09 00:17:03 +00:00
19 lines
348 B
Bash
Executable File
19 lines
348 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
source $(dirname $0)/version
|
|
|
|
pushd $DAPPER_SOURCE
|
|
|
|
if [ -f bin/kube-explorer-linux-${ARCH} ]; then
|
|
# For cross mode
|
|
cp bin/kube-explorer-linux-${ARCH} package/kube-explorer
|
|
else
|
|
# For common mode
|
|
cp bin/kube-explorer package/
|
|
fi
|
|
cd package
|
|
docker build -f Dockerfile -t cnrancher/kube-explorer:$VERSION .
|
|
|
|
popd
|