hosts Docker & Self-Hosted Deployment

GitHub

Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.

1. Pull Image (DOCKERHUB) docker pull StevenBlack/hosts:latest
2. Docker Run (1-Click Launch) docker run -d --name hosts --restart always stevenblack/hosts:latest
3. Podman Run podman run -d --name hosts --restart always stevenblack/hosts:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/stevenblack/hosts:latest
5. ORAS Pull (OCI Artifact) oras pull stevenblack/hosts:latest
Dockerfile
FROM docker.io/python:3-alpine

ENV IN_CONTAINER=1

RUN apk add --no-cache git sudo

COPY . /hosts

RUN pip install --no-cache-dir --upgrade -r /hosts/requirements.txt

ENV PATH=$PATH:/hosts

WORKDIR /hosts