whoogle (arm64)

Published 2024-07-01 19:16:33 -05:00 by Korbs

Installation

docker pull ark.sudovanilla.org/korbs/whoogle:arm64
sha256:bb3cbef607c8bf670aa69b66c81094dc5021cb8183ad332139571cc763e7d485

Image Layers

ADD file:df53811312284306901fdaaff0a357a4bf40d631e662fe9ce6d342442e494b6c in /
CMD ["/bin/sh"]
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=C.UTF-8
/bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ;
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
ENV PYTHON_VERSION=3.11.0a5
/bin/sh -c set -eux; apk add --no-cache --virtual .build-deps gnupg tar xz bluez-dev bzip2-dev dpkg-dev dpkg expat-dev findutils gcc gdbm-dev libc-dev libffi-dev libnsl-dev libtirpc-dev linux-headers make ncurses-dev openssl-dev pax-utils readline-dev sqlite-dev tcl-dev tk tk-dev util-linux-dev xz-dev zlib-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; command -v gpgconf > /dev/null && gpgconf --kill all || :; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared --with-lto --with-system-expat --with-system-ffi --without-ensurepip ; nproc="$(nproc)"; make -j "$nproc" EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000" LDFLAGS="-Wl,--strip-all" ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name '*.a' \) \) \) -exec rm -rf '{}' + ; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-network --virtual .python-rundeps ; apk del --no-network .build-deps; python3 --version
/bin/sh -c set -eux; for src in idle3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "/usr/local/bin/$src" "/usr/local/bin/$dst"; done
ENV PYTHON_PIP_VERSION=21.2.4
ENV PYTHON_SETUPTOOLS_VERSION=58.1.0
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/2caf84b14febcda8077e59e9b8a6ef9a680aa392/public/get-pip.py
ENV PYTHON_GET_PIP_SHA256=7c5239cea323cadae36083079a5ee6b2b3d56f25762a0c060d2867b89e5e06c5
/bin/sh -c set -eux; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; export PYTHONDONTWRITEBYTECODE=1; python get-pip.py --disable-pip-version-check --no-cache-dir --no-compile "pip==$PYTHON_PIP_VERSION" "setuptools==$PYTHON_SETUPTOOLS_VERSION" ; rm -f get-pip.py; pip --version
CMD ["python3"]
RUN /bin/sh -c apk add --update --no-cache tor curl openrc libstdc++ # buildkit
RUN /bin/sh -c apk -U upgrade # buildkit
ARG DOCKER_USER=whoogle
ARG DOCKER_USERID=927
ARG config_dir=/config
RUN |3 DOCKER_USER=whoogle DOCKER_USERID=927 config_dir=/config /bin/sh -c mkdir -p $config_dir # buildkit
RUN |3 DOCKER_USER=whoogle DOCKER_USERID=927 config_dir=/config /bin/sh -c chmod a+w $config_dir # buildkit
VOLUME [/config]
ARG url_prefix=
ARG username=
ARG password=
ARG proxyuser=
ARG proxypass=
ARG proxytype=
ARG proxyloc=
ARG whoogle_dotenv=
ARG use_https=
ARG whoogle_port=5000
ARG twitter_alt=farside.link/nitter
ARG youtube_alt=farside.link/invidious
ARG reddit_alt=farside.link/libreddit
ARG medium_alt=farside.link/scribe
ARG translate_alt=farside.link/lingva
ARG imgur_alt=farside.link/rimgo
ARG wikipedia_alt=farside.link/wikiless
ARG imdb_alt=farside.link/libremdb
ARG quora_alt=farside.link/quetre
ENV CONFIG_VOLUME=/config WHOOGLE_URL_PREFIX= WHOOGLE_USER= WHOOGLE_PASS= WHOOGLE_PROXY_USER= WHOOGLE_PROXY_PASS= WHOOGLE_PROXY_TYPE= WHOOGLE_PROXY_LOC= WHOOGLE_DOTENV= HTTPS_ONLY= EXPOSE_PORT=5000 WHOOGLE_ALT_TW=farside.link/nitter WHOOGLE_ALT_YT=farside.link/invidious WHOOGLE_ALT_RD=farside.link/libreddit WHOOGLE_ALT_MD=farside.link/scribe WHOOGLE_ALT_TL=farside.link/lingva WHOOGLE_ALT_IMG=farside.link/rimgo WHOOGLE_ALT_WIKI=farside.link/wikiless WHOOGLE_ALT_IMDB=farside.link/libremdb WHOOGLE_ALT_QUORA=farside.link/quetre
WORKDIR /whoogle
COPY /install /usr/local # buildkit
COPY misc/tor/torrc /etc/tor/torrc # buildkit
COPY misc/tor/start-tor.sh misc/tor/start-tor.sh # buildkit
COPY app/ app/ # buildkit
COPY run whoogle.env* ./ # buildkit
RUN |22 DOCKER_USER=whoogle DOCKER_USERID=927 config_dir=/config url_prefix= username= password= proxyuser= proxypass= proxytype= proxyloc= whoogle_dotenv= use_https= whoogle_port=5000 twitter_alt=farside.link/nitter youtube_alt=farside.link/invidious reddit_alt=farside.link/libreddit medium_alt=farside.link/scribe translate_alt=farside.link/lingva imgur_alt=farside.link/rimgo wikipedia_alt=farside.link/wikiless imdb_alt=farside.link/libremdb quora_alt=farside.link/quetre /bin/sh -c adduser -D -g $DOCKER_USERID -u $DOCKER_USERID $DOCKER_USER # buildkit
RUN |22 DOCKER_USER=whoogle DOCKER_USERID=927 config_dir=/config url_prefix= username= password= proxyuser= proxypass= proxytype= proxyloc= whoogle_dotenv= use_https= whoogle_port=5000 twitter_alt=farside.link/nitter youtube_alt=farside.link/invidious reddit_alt=farside.link/libreddit medium_alt=farside.link/scribe translate_alt=farside.link/lingva imgur_alt=farside.link/rimgo wikipedia_alt=farside.link/wikiless imdb_alt=farside.link/libremdb quora_alt=farside.link/quetre /bin/sh -c chown -R ${DOCKER_USER}:${DOCKER_USER} /whoogle /var/lib/tor # buildkit
RUN |22 DOCKER_USER=whoogle DOCKER_USERID=927 config_dir=/config url_prefix= username= password= proxyuser= proxypass= proxytype= proxyloc= whoogle_dotenv= use_https= whoogle_port=5000 twitter_alt=farside.link/nitter youtube_alt=farside.link/invidious reddit_alt=farside.link/libreddit medium_alt=farside.link/scribe translate_alt=farside.link/lingva imgur_alt=farside.link/rimgo wikipedia_alt=farside.link/wikiless imdb_alt=farside.link/libremdb quora_alt=farside.link/quetre /bin/sh -c chown $DOCKER_USERID:$DOCKER_USERID app/static/build # buildkit
USER whoogle:whoogle
EXPOSE map[5000/tcp:{}]
HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:${EXPOSE_PORT}/healthz || exit 1"] "30s" "5s" "0s" "0s" '\x00'}
CMD ["/bin/sh" "-c" "misc/tor/start-tor.sh & ./run"]
Details
Container
2024-07-01 19:16:33 -05:00
2
OCI / Docker
linux/arm64/v8
47 MiB
Versions (2) View all
amd64 2024-07-01
arm64 2024-07-01