ttvdrops (sha-b4fd80c)
Installation
docker pull git.lovinator.space/thelovinator/ttvdrops:sha-b4fd80csha256:29371cc1a4ea9efe070c591e43036ce820a66a931324a1426919e4d7060e58deAbout this package
Get notified when a new drop is available on Twitch or Kick
Image layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1795392000' |
| ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV LANG=C.UTF-8 |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit |
| ENV PYTHON_VERSION=3.15.2 |
| ENV PYTHON_SHA256=8b5536d280142ecf6cdfe15d12a21ba1c65e300bbf7b28a8d0cdb849575797de |
| RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev g++ gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libmpdec-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev libzstd-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; 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 $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; 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 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit |
| RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit |
| CMD ["python3"] |
| COPY /uv /uvx /bin/ # buildkit |
| ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy UV_PYTHON=/usr/local/bin/python UV_PYTHON_PREFERENCE=only-system VIRTUAL_ENV=/app/.venv PATH=/app/.venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c apt-get update && apt-get install --no-install-recommends -y ca-certificates curl git && install -d /usr/share/postgresql-common/pgdg && curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc && echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt trixie-pgdg main" > /etc/apt/sources.list.d/pgdg.list && apt-get update && apt-get install --no-install-recommends -y postgresql-client-18 && rm -rf /var/lib/apt/lists/* # buildkit |
| WORKDIR /app |
| COPY pyproject.toml README.md ./ # buildkit |
| RUN /bin/sh -c uv venv /app/.venv && uv pip compile pyproject.toml -o /tmp/requirements.txt && uv pip install --python /app/.venv/bin/python -r /tmp/requirements.txt # buildkit |
| COPY . /app # buildkit |
| RUN /bin/sh -c groupadd --gid 1000 ttvdrops && useradd --uid 1000 --gid ttvdrops --home-dir /app --shell /usr/sbin/nologin ttvdrops && mkdir -p /app/data /srv/ttvdrops/responses/pending /srv/ttvdrops/responses/imported /srv/ttvdrops/responses/broken && chown -R ttvdrops:ttvdrops /app /srv/ttvdrops/responses # buildkit |
| USER ttvdrops |
| EXPOSE 8000/tcp |
| CMD ["gunicorn" "config.wsgi:application" "--bind" "0.0.0.0:8000"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.created | 2026-11-30T20:47:17.401Z |
| org.opencontainers.image.description | Get notified when a new drop is available on Twitch or Kick |
| org.opencontainers.image.licenses | |
| org.opencontainers.image.revision | b4fd80ce4a9490fd456e8b9df5e3bc895deca8a9 |
| org.opencontainers.image.source | git.lovinator.space/TheLovinator/ttvdrops |
| org.opencontainers.image.title | ttvdrops |
| org.opencontainers.image.url | https://git.lovinator.space/TheLovinator/ttvdrops |
| org.opencontainers.image.version | master |
Details
2026-11-30 21:48:12 +01:00
Versions (2)
View all
Container
0
OCI / Docker
linux/amd64
216 MiB
latest
2026-11-30
sha-b4fd80c
2026-11-30