FROM python:3.12-slim
WORKDIR /app
# Install system dependencies for local tools
RUN apt-get update && apt-get install -y --no-install-recommends \
whois \
dnsutils \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY pyproject.toml README.md ./
COPY src/ ./src/
RUN pip install --no-cache-dir -e . flask
# Install optional local tools (may fail, that's ok)
RUN pip install --no-cache-dir sherlock-project holehe 2>/dev/null || true
EXPOSE 5005
# Default: HTTP server for web deployment
# For MCP: override with CMD ["python", "-m", "osint_mcp.server"]
CMD ["python", "-m", "osint_mcp.http_server"]