Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix: increase ulimit -n in docker
Gergő Móriczf0a1a2e45bdd
diff --git a/apps/api/Dockerfile b/apps/api/Dockerfileindex 527a6dc77..22aa995cb 100644--- a/apps/api/Dockerfile+++ b/apps/api/Dockerfile@@ -37,4 +37,6 @@ COPY --from=go-base /app/src/lib/go-html-to-md/html-to-markdown.so /app/dist/src# Start the server by default, this can be overwritten at runtimeEXPOSE 8080-ENV PUPPETEER_EXECUTABLE_PATH="/usr/bin/chromium"\ No newline at end of file+ENV PUPPETEER_EXECUTABLE_PATH="/usr/bin/chromium"++ENTRYPOINT "/app/docker-entrypoint.sh"\ No newline at end of filediff --git a/apps/api/docker-entrypoint.sh b/apps/api/docker-entrypoint.shnew file mode 100755index 000000000..21122b06a--- /dev/null+++ b/apps/api/docker-entrypoint.sh@@ -0,0 +1,18 @@+#!/bin/bash -e++if [ $UID -eq 0 ]; then+ ulimit -n 65535+ echo "NEW ULIMIT: $(ulimit -n)"+else+ echo ENTRYPOINT DID NOT RUN AS ROOT+fi++if [ $FLY_PROCESS_GROUP -eq "app" ]; then+ node --max-old-space-size=8192 dist/src/index.js+elif [ $FLY_PROCESS_GROUP -eq "worker" ]; then+ node --max-old-space-size=8192 dist/src/services/queue-worker.js+else+ echo "NO FLY PROCESS GROUP, RUNNING app BY DEFAULT"+ node --max-old-space-size=8192 dist/src/index.js+fi+