maigret Docker & Self-Hosted Deployment

GitHub

๏ธโ€โ™‚๏ธ Collect a dossier on a person by username from 3000+ sites

1. Pull Image (DOCKERHUB) docker pull soxoj/maigret:latest
2. Docker Run (1-Click Launch) docker run -d --name maigret -p 5000:5000 --restart always soxoj/maigret:latest
3. Podman Run podman run -d --name maigret -p 5000:5000 --restart always soxoj/maigret:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/soxoj/maigret:latest
5. ORAS Pull (OCI Artifact) oras pull soxoj/maigret:latest
Dockerfile
FROM python:3.11-slim AS base
LABEL maintainer="Soxoj <[email protected]>"
WORKDIR /app
RUN pip install --no-cache-dir --upgrade pip
RUN apt-get update && \
    apt-get install --no-install-recommends -y \
      build-essential \
      python3-dev \
      pkg-config \
      libcairo2-dev \
      libxml2-dev \
      libxslt1-dev \
    && rm -rf /var/lib/apt/lists/* /tmp/*
COPY . .
RUN YARL_NO_EXTENSIONS=1 python3 -m pip install --no-cache-dir .
# For production use, set FLASK_HOST to a specific IP address for security
ENV FLASK_HOST=0.0.0.0

# Web UI variant: auto-launches the web interface on $PORT
FROM base AS web
RUN pip install --no-cache-dir '.[pdf]'
ENV PORT=5000
EXPOSE 5000
ENTRYPOINT ["sh", "-c", "exec maigret --web \"$PORT\""]

# Default variant (last stage = `docker build .` target): CLI, backwards-compatible
FROM base AS cli
ENTRYPOINT ["maigret"]