refactor: Update Dockerfile to install Crawl4AI with specified options

This commit updates the Dockerfile to install Crawl4AI with the specified options. The `INSTALL_OPTION` build argument is used to determine which additional packages to install. If the option is set to "all", all models will be downloaded. If the option is set to "torch", only torch models will be downloaded. If the option is set to "transformer", only transformer models will be downloaded. If no option is specified, the default installation will be used. This change improves the flexibility and customization of the Crawl4AI installation process.
This commit is contained in:
unclecode
2024-08-01 17:56:19 +08:00
parent 40477493d3
commit b6713870ef
4 changed files with 89 additions and 18 deletions

View File

@@ -15,9 +15,10 @@ scikit-learn==1.5.0
selenium==4.23.1
uvicorn==0.30.1
transformers==4.41.2
chromedriver-autoinstaller==0.6.4
# webdriver-manager==4.0.1
# chromedriver-autoinstaller==0.6.4
torch==2.3.1
onnxruntime==1.18.0
tokenizers==0.19.1
pillow==10.3.0
webdriver-manager==4.0.1
slowapi==0.1.9