Sign inSign up

trigus42/mitm-adblock

By trigus42

Updated about 5 years ago

Image
0

1.3K

trigus42/mitm-adblock repository overview

MITM-AdBlock

Run:

docker run --restart=unless-stopped -d --name adblock -p 8118:8118 trigus42/mitm-adblock

Build:

docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag trigus42/mitm-adblock .

Files:

Dockerfile
FROM alpine:latest

RUN apk update; \
    apk upgrade

RUN apk add --no-cache bash wget git; \
    apk add --no-cache python3 py3-pip ; \
    # general build tools
    apk add --no-cache g++ python3-dev; \
    # for pyre2
    apk add --no-cache re2-dev libre2; \
    # for mitmproxy
    apk add --no-cache libffi-dev openssl-dev; \
    # clean up
    rm -rf /var/cache/apk/* /tmp/*

RUN pip install mitmproxy adblockparser pyre2

RUN mkdir /etc/mitm-adblock
RUN git clone https://github.com/epitron/mitm-adblock.git /etc/mitm-adblock/

# add entrypoint file
COPY entrypoint.sh /
RUN  chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

# set build date
RUN date >/build-date.txt
entrypoint.sh
#!/bin/bash
echo "Build date: $(cat /build-date.txt)"

cd /etc/mitm-adblock/
./update-blocklists
./go

Tag summary

Content type

Image

Digest

Size

54.5 MB

Last updated

about 5 years ago

docker pull trigus42/mitm-adblock