FinalFactory

youtubemanager/backend (807cf90527dac2195e402055bb31d7a8600f8c40)

Published 2026-09-27 12:57:17 +02:00 by schmidt.florian

Installation

docker pull git.finalfactory.de/finalfactory/youtubemanager/backend:807cf90527dac2195e402055bb31d7a8600f8c40
sha256:0f4a7690bd0afe139d0b560fb93ac0fa2c18add3647ec1cc0e6e739187810a64

Images

Digest OS / Arch Size
552e0f65c8 linux/amd64 450 MiB

Image Layers ( linux/amd64)

# debian.sh --arch 'amd64' out/ 'bookworm' '@1789689600'
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 ; rm -rf /var/lib/apt/lists/* # buildkit
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
ENV PYTHON_VERSION=3.12.14
ENV PYTHON_SHA256=5c8462af5790baf43a321a1559dbe0db06d1be4300fb85fb53c40060668e548a
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 libncursesw5-dev libreadline-dev libsqlite3-dev libssl-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 -; 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; 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 $(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; rm -rf /var/lib/apt/lists/*; 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"]
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/* # buildkit
ARG TARGETARCH=amd64
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl iptables && rm -rf /var/lib/apt/lists/* # buildkit
ARG CLAUDE_CODE_VERSION=2.1.273
ARG CLAUDE_CODE_SHA256_AMD64=6c752e2cc7c110c9df15f26d8d134d438c5ae95dbd610efc1a308bf7f9c5f6c1
ARG CLAUDE_CODE_SHA256_ARM64=103cfab4d6ae898b6af692336fb662ffcc607075cc6408892bd350b3f549ebee
RUN |4 TARGETARCH=amd64 CLAUDE_CODE_VERSION=2.1.273 CLAUDE_CODE_SHA256_AMD64=6c752e2cc7c110c9df15f26d8d134d438c5ae95dbd610efc1a308bf7f9c5f6c1 CLAUDE_CODE_SHA256_ARM64=103cfab4d6ae898b6af692336fb662ffcc607075cc6408892bd350b3f549ebee /bin/sh -c set -eu; arch="${TARGETARCH:-$(dpkg --print-architecture)}"; case "$arch" in amd64) plat=linux-x64; sum="$CLAUDE_CODE_SHA256_AMD64" ;; arm64) plat=linux-arm64; sum="$CLAUDE_CODE_SHA256_ARM64" ;; *) echo "Claude Code: unsupported architecture $arch" >&2; exit 1 ;; esac; tmp="$(mktemp -d)"; curl -fsSL -o "$tmp/claude" "https://downloads.claude.ai/claude-code-releases/${CLAUDE_CODE_VERSION}/${plat}/claude"; echo "$sum $tmp/claude" | sha256sum -c -; install -m 0755 "$tmp/claude" /usr/local/bin/claude; rm -rf "$tmp"; check="$(mktemp -d)"; HOME="$check" CLAUDE_CONFIG_DIR="$check/claude" DISABLE_AUTOUPDATER=1 DISABLE_UPDATES=1 claude --version | tee "$check/version"; grep -qF "$CLAUDE_CODE_VERSION" "$check/version"; rm -rf "$check" # buildkit
ARG CODEX_VERSION=0.156.1
ARG CODEX_SHA256_AMD64=aff46539a83aff86e3c62c592bce2c50d95391f9df289afaf03a50c01d14533d
ARG CODEX_SHA256_ARM64=558e12aaa6dacb335ec47240bf9721db8a54746806d64f01185a403f44f79b72
RUN |7 TARGETARCH=amd64 CLAUDE_CODE_VERSION=2.1.273 CLAUDE_CODE_SHA256_AMD64=6c752e2cc7c110c9df15f26d8d134d438c5ae95dbd610efc1a308bf7f9c5f6c1 CLAUDE_CODE_SHA256_ARM64=103cfab4d6ae898b6af692336fb662ffcc607075cc6408892bd350b3f549ebee CODEX_VERSION=0.156.1 CODEX_SHA256_AMD64=aff46539a83aff86e3c62c592bce2c50d95391f9df289afaf03a50c01d14533d CODEX_SHA256_ARM64=558e12aaa6dacb335ec47240bf9721db8a54746806d64f01185a403f44f79b72 /bin/sh -c set -eu; arch="${TARGETARCH:-$(dpkg --print-architecture)}"; case "$arch" in amd64) triple=x86_64-unknown-linux-musl; sum="$CODEX_SHA256_AMD64" ;; arm64) triple=aarch64-unknown-linux-musl; sum="$CODEX_SHA256_ARM64" ;; *) echo "Codex: unsupported architecture $arch" >&2; exit 1 ;; esac; tmp="$(mktemp -d)"; curl -fsSL -o "$tmp/codex.tar.gz" "https://github.com/openai/codex/releases/download/rust-v${CODEX_VERSION}/codex-${triple}.tar.gz"; echo "$sum $tmp/codex.tar.gz" | sha256sum -c -; mkdir "$tmp/x"; tar -xzf "$tmp/codex.tar.gz" -C "$tmp/x"; install -m 0755 "$tmp/x/codex-${triple}" /usr/local/bin/codex; rm -rf "$tmp"; check="$(mktemp -d)"; mkdir "$check/codex"; HOME="$check" CODEX_HOME="$check/codex" codex --version | tee "$check/version"; grep -qF "$CODEX_VERSION" "$check/version"; rm -rf "$check" # buildkit
RUN |7 TARGETARCH=amd64 CLAUDE_CODE_VERSION=2.1.273 CLAUDE_CODE_SHA256_AMD64=6c752e2cc7c110c9df15f26d8d134d438c5ae95dbd610efc1a308bf7f9c5f6c1 CLAUDE_CODE_SHA256_ARM64=103cfab4d6ae898b6af692336fb662ffcc607075cc6408892bd350b3f549ebee CODEX_VERSION=0.156.1 CODEX_SHA256_AMD64=aff46539a83aff86e3c62c592bce2c50d95391f9df289afaf03a50c01d14533d CODEX_SHA256_ARM64=558e12aaa6dacb335ec47240bf9721db8a54746806d64f01185a403f44f79b72 /bin/sh -c set -eu; install -d -m 0755 /etc/claude-code /etc/codex; printf '%s\n' '{"forceLoginMethod": "claudeai"}' > /etc/claude-code/managed-settings.json; printf '%s\n' 'allowed_login_methods = ["chatgpt"]' > /etc/codex/requirements.toml; chmod 0644 /etc/claude-code/managed-settings.json /etc/codex/requirements.toml; check="$(mktemp -d)"; mkdir "$check/claude" "$check/codex"; rc=0; HOME="$check" CLAUDE_CONFIG_DIR="$check/claude" DISABLE_AUTOUPDATER=1 DISABLE_UPDATES=1 timeout 60 claude auth status --json > "$check/claude.out" 2>&1 || rc=$?; if [ "$rc" -ne 1 ] || ! grep -qF '"forcedLoginMethod": "claudeai"' "$check/claude.out"; then echo "Claude Code rejects /etc/claude-code/managed-settings.json (exit $rc):" >&2; cat "$check/claude.out" >&2; exit 1; fi; rc=0; HOME="$check" CODEX_HOME="$check/codex" timeout 60 codex -c 'forced_login_method="chatgpt"' -c 'cli_auth_credentials_store="file"' login status > "$check/codex.out" 2>&1 || rc=$?; if [ "$rc" -ne 1 ] || ! grep -qx 'Not logged in' "$check/codex.out" || grep -qE 'Error loading configuration|Failed to read requirements file' "$check/codex.out"; then echo "Codex rejects /etc/codex/requirements.toml (exit $rc):" >&2; cat "$check/codex.out" >&2; exit 1; fi; rm -rf "$check" # buildkit
RUN |7 TARGETARCH=amd64 CLAUDE_CODE_VERSION=2.1.273 CLAUDE_CODE_SHA256_AMD64=6c752e2cc7c110c9df15f26d8d134d438c5ae95dbd610efc1a308bf7f9c5f6c1 CLAUDE_CODE_SHA256_ARM64=103cfab4d6ae898b6af692336fb662ffcc607075cc6408892bd350b3f549ebee CODEX_VERSION=0.156.1 CODEX_SHA256_AMD64=aff46539a83aff86e3c62c592bce2c50d95391f9df289afaf03a50c01d14533d CODEX_SHA256_ARM64=558e12aaa6dacb335ec47240bf9721db8a54746806d64f01185a403f44f79b72 /bin/sh -c groupadd --system --gid 10001 ai && useradd --system --uid 10001 --gid ai --home-dir /ai-home --no-create-home --shell /usr/sbin/nologin ai && mkdir -p /ai-home/claude /ai-home/codex && chown -R ai:ai /ai-home && chmod 0700 /ai-home /ai-home/claude /ai-home/codex # buildkit
ENV CLAUDE_CONFIG_DIR=/ai-home/claude CODEX_HOME=/ai-home/codex DISABLE_AUTOUPDATER=1
WORKDIR /app
COPY requirements.lock . # buildkit
RUN |7 TARGETARCH=amd64 CLAUDE_CODE_VERSION=2.1.273 CLAUDE_CODE_SHA256_AMD64=6c752e2cc7c110c9df15f26d8d134d438c5ae95dbd610efc1a308bf7f9c5f6c1 CLAUDE_CODE_SHA256_ARM64=103cfab4d6ae898b6af692336fb662ffcc607075cc6408892bd350b3f549ebee CODEX_VERSION=0.156.1 CODEX_SHA256_AMD64=aff46539a83aff86e3c62c592bce2c50d95391f9df289afaf03a50c01d14533d CODEX_SHA256_ARM64=558e12aaa6dacb335ec47240bf9721db8a54746806d64f01185a403f44f79b72 /bin/sh -c pip install --no-cache-dir --require-hashes -r requirements.lock # buildkit
COPY alembic.ini alembic.ini # buildkit
COPY alembic /app/alembic # buildkit
COPY app /app/app # buildkit
COPY scripts /app/scripts # buildkit
ENV PYTHONPATH=/app
ENV DATABASE_URL=sqlite:///data/youtube_schedule.db
EXPOSE [8000/tcp]
CMD ["python" "-m" "scripts.safe_migrate" "--exec" "uvicorn" "app.main:app" "--host" "0.0.0.0" "--port" "8000" "--timeout-graceful-shutdown" "5"]

Labels

Key Value
org.opencontainers.image.base.digest sha256:392307d22300de8b5986851a12d9176dfc0fc073e65bf6523ebd7dcbeb23564e
org.opencontainers.image.base.name python:3.12-slim-bookworm
org.opencontainers.image.created 2026-09-27T10:54:46Z
org.opencontainers.image.revision 807cf90527dac2195e402055bb31d7a8600f8c40
org.opencontainers.image.source http://10.0.30.5:3000/FinalFactory/YoutubeManager
Details
Container
2026-09-27 12:57:17 +02:00
0
OCI / Docker
Versions (56) View all