Files
nginx-proxy-manager/scripts/docs-build
T

15 lines
527 B
Bash
Raw Normal View History

2020-02-19 15:55:06 +11:00
#!/bin/bash -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2020-05-21 16:11:19 +10:00
. "$DIR/.common.sh"
2020-02-19 15:55:06 +11:00
2025-10-14 19:01:00 +10:00
# Ensure docker exists
2020-02-19 15:55:06 +11:00
if hash docker 2>/dev/null; then
cd "${DIR}/.."
echo -e "${BLUE} ${CYAN}Building Docs ...${RESET}"
2023-12-19 13:51:13 +01:00
docker run --rm -e CI=true -v "$(pwd)/docs:/app/docs" -w /app/docs node:alpine sh -c "yarn set version berry && yarn install && yarn build && chown -R $(id -u):$(id -g) /app/docs"
2020-02-19 15:55:06 +11:00
echo -e "${BLUE} ${GREEN}Building Docs Complete${RESET}"
else
echo -e "${RED} docker command is not available${RESET}"
fi