feature: Add env vars into entrypoint

parent 92e629f1
Pipeline #274 passed with stages
in 52 seconds
#!/bin/sh
MKD_PORT=${MKD_PORT:-'8000'}
MKD_LISTEN_ADDR=${MKD_LISTEN_ADDR:-'0.0.0.0'}
cd ${MKD_ROOT}
CFG_EXIST=$(find ./ -type f -name "mkdocs.yml")
if [ -z ${CFG_EXIST} ]
......@@ -8,4 +11,4 @@ then
mv project/* .
rmdir project
fi
/usr/bin/mkdocs serve --dev-addr 0.0.0.0:8000
\ No newline at end of file
/usr/bin/mkdocs serve --dev-addr ${MKD_LISTEN_ADDR}:${MKD_PORT}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment