mirror of
https://github.com/rancher/docs.git
synced 2026-02-05 18:45:07 +01:00
17 lines
245 B
Bash
Executable File
17 lines
245 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# cd to app root
|
|
CWD=$(dirname $0)
|
|
if [[ `basename $(pwd)` = 'scripts' ]]; then
|
|
cd ../
|
|
else
|
|
cd `dirname $CWD`
|
|
fi
|
|
|
|
PORT=9000
|
|
if [ ! -z "$1" ]; then
|
|
PORT=$1
|
|
fi
|
|
|
|
docker run --rm -it -v $(pwd):/site rancher/docs:dev minify-images
|