api / Dockerfile
lljz66's picture
Replace cloud-Firecrawl Dockerfile with katana-based stack
ae14d69 verified
Raw
History Blame Contribute Delete
825 Bytes
FROM python:3.12-slim
WORKDIR /app
# katana (ProjectDiscovery) - self-contained crawler binary used by /map
# to discover URLs on a site. No API key, no external service.
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl unzip \
&& curl -sL -o /tmp/katana.zip \
https://github.com/projectdiscovery/katana/releases/download/v1.7.0/katana_1.7.0_linux_amd64.zip \
&& unzip -o /tmp/katana.zip -d /usr/local/bin/ >/dev/null \
&& chmod +x /usr/local/bin/katana \
&& rm -f /tmp/katana.zip \
&& apt-get purge -y unzip \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
ENV PYTHONUNBUFFERED=1
EXPOSE 7860
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]