feat(api): add API token authentication and update Dockerfile description

This commit is contained in:
UncleCode
2024-11-16 18:08:56 +08:00
parent 1961adb530
commit 6360d0545a
4 changed files with 65 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ ARG ENABLE_GPU=false
# Platform-specific labels
LABEL maintainer="unclecode"
LABEL description="Crawl4AI - Advanced Web Crawler with AI capabilities"
LABEL description="🔥🕷️ Crawl4AI: Open-source LLM Friendly Web Crawler & scraper"
LABEL version="1.0"
# Environment setup
@@ -79,6 +79,7 @@ COPY . .
RUN pip install --no-cache-dir -r requirements.txt
# Install required library for FastAPI
RUN pip install .
RUN pip install fastapi uvicorn psutil
# Install ML dependencies first for better layer caching