1
0
mirror of https://github.com/rancher/docs.git synced 2026-02-05 18:45:07 +01:00
Files
docs/scripts/minify-images
Vincent Fiduccia 2871f45954 Packaging
2018-04-20 16:43:03 -07:00

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