Create entrypoint.sh
Browse files- entrypoint.sh +38 -0
entrypoint.sh
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
# if you are using windows, you may need to convert the file to unix format
|
| 6 |
+
# you can use the Ubuntu terminal to convert this file to unix format
|
| 7 |
+
# otherwise, you may get the error after running the docker container
|
| 8 |
+
|
| 9 |
+
# sudo apt-get install dos2unix
|
| 10 |
+
# dos2unix entrypoint.sh
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
set -e
|
| 14 |
+
|
| 15 |
+
export NEXT_PUBLIC_DEPLOY_ENV=${DEPLOY_ENV}
|
| 16 |
+
export NEXT_PUBLIC_EDITION=${EDITION}
|
| 17 |
+
export NEXT_PUBLIC_API_PREFIX=${CONSOLE_API_URL}/console/api
|
| 18 |
+
export NEXT_PUBLIC_PUBLIC_API_PREFIX=${APP_API_URL}/api
|
| 19 |
+
export NEXT_PUBLIC_MARKETPLACE_API_PREFIX=${MARKETPLACE_API_URL}/api/v1
|
| 20 |
+
export NEXT_PUBLIC_MARKETPLACE_URL_PREFIX=${MARKETPLACE_URL}
|
| 21 |
+
|
| 22 |
+
export NEXT_PUBLIC_SENTRY_DSN=${SENTRY_DSN}
|
| 23 |
+
export NEXT_PUBLIC_SITE_ABOUT=${SITE_ABOUT}
|
| 24 |
+
export NEXT_TELEMETRY_DISABLED=${NEXT_TELEMETRY_DISABLED}
|
| 25 |
+
|
| 26 |
+
export NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS=${TEXT_GENERATION_TIMEOUT_MS}
|
| 27 |
+
export NEXT_PUBLIC_CSP_WHITELIST=${CSP_WHITELIST}
|
| 28 |
+
export NEXT_PUBLIC_ALLOW_EMBED=${ALLOW_EMBED}
|
| 29 |
+
export NEXT_PUBLIC_TOP_K_MAX_VALUE=${TOP_K_MAX_VALUE}
|
| 30 |
+
export NEXT_PUBLIC_INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=${INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH}
|
| 31 |
+
export NEXT_PUBLIC_MAX_TOOLS_NUM=${MAX_TOOLS_NUM}
|
| 32 |
+
export NEXT_PUBLIC_ENABLE_WEBSITE_JINAREADER=${ENABLE_WEBSITE_JINAREADER:-true}
|
| 33 |
+
export NEXT_PUBLIC_ENABLE_WEBSITE_FIRECRAWL=${ENABLE_WEBSITE_FIRECRAWL:-true}
|
| 34 |
+
export NEXT_PUBLIC_ENABLE_WEBSITE_WATERCRAWL=${ENABLE_WEBSITE_WATERCRAWL:-true}
|
| 35 |
+
export NEXT_PUBLIC_LOOP_NODE_MAX_COUNT=${LOOP_NODE_MAX_COUNT}
|
| 36 |
+
export NEXT_PUBLIC_MAX_PARALLEL_LIMIT=${MAX_PARALLEL_LIMIT}
|
| 37 |
+
export NEXT_PUBLIC_MAX_ITERATIONS_NUM=${MAX_ITERATIONS_NUM}
|
| 38 |
+
pm2 start /app/web/server.js --name dify-web --cwd /app/web -i ${PM2_INSTANCES} --no-daemon
|