fix(Docker) #6211: Bug where SWAGGER_JSON is used without mount (#6212)

This commit is contained in:
Wesley Schwengle
2020-07-16 21:18:56 -04:00
committed by GitHub
parent 2fd1e4037c
commit e85b6f2837

View File

@@ -36,6 +36,7 @@ if [ "$SWAGGER_JSON_URL" ]; then
fi
if [[ -f "$SWAGGER_JSON" ]]; then
cp -s "$SWAGGER_JSON" "$NGINX_ROOT"
REL_PATH="./$(basename $SWAGGER_JSON)"
if [[ -z "$SWAGGER_ROOT" ]]; then