mangaforge (latest)
Published 2026-11-13 22:55:58 +01:00 by Codex
Installation
docker pull gitea.coreplay.eu/coreplay.eu/mangaforge:latestsha256:369359be7cf84fa128d8fee243bad4a30049da615d5bab495705bd0fa374fbc9
Image Layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1793827419' |
| 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 GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305 |
| ENV PYTHON_VERSION=3.12.16 |
| ENV PYTHON_SHA256=b5796915dc45ff745cfb4e990a7e7c93d6f546328a102ce31448d69ebc37575c |
| 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; 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"] |
| WORKDIR /build |
| ARG PROFILE=base |
| COPY file:395d7e76e78bbc3ccf49f13a60b2f06e81dc749dac01d98eaf3bc35142cacb93 in /runtime.lock |
| |1 PROFILE=base /bin/sh -c python -m pip install --no-cache-dir --require-hashes -r /runtime.lock && python -m pip install --no-cache-dir setuptools==84.2.1 |
| COPY file:d73a68c4f1e23444afd74b1de6b84a44d2f659eba145f0ef12b5f5024f763439 in /etc/apt/sources.list.d/debian.sources |
| /bin/sh -c apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends ca-certificates tzdata tesseract-ocr tesseract-ocr-eng unar util-linux && rm -rf /var/lib/apt/lists/* |
| COPY dir:a82741d631662531b262472f4cdddf2a72dab2ef270f6eeed00c248b9219c0a8 in /opt/sqlite/lib/ |
| COPY multi:826dc5c5ef2a9e52df8a68bbb825c1b4beaaff945a20226706b9ddaa26ce4a28 in /usr/local/share/mangaforge/requirements/ |
| COPY dir:8c7c2f8448b3cf62d19763c514b51cf47e9c23590039818d3a0f89fa8ec1c4df in /usr/local/lib/python3.12/site-packages/ |
| COPY file:a1aa322a94bf08f838dacc387930fc26c8739bd24c88c6e9d49125dda6b007b1 in /usr/local/bin/mangaforge |
| COPY file:9ae82d6a49f6cb12f279c52962e829edf9137f5f1f1a2a4a46e8d29776922929 in /usr/local/bin/mangaforge-entrypoint |
| /bin/sh -c chmod 755 /usr/local/bin/mangaforge-entrypoint && mkdir /data /models /runtime && chown 1000:1000 /data /models /runtime |
| ENV LD_LIBRARY_PATH=/opt/sqlite/lib PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 MANGAFORGE_DATA_DIR=/data HF_HOME=/models TRANSFORMERS_OFFLINE=1 HF_HUB_OFFLINE=1 HOME=/tmp OPENBLAS_NUM_THREADS=1 |
| WORKDIR /app |
| USER 1000:1000 |
| EXPOSE 8080 |
| ARG SOURCE_REVISION=uncommitted |
| LABEL org.opencontainers.image.title=MangaForge org.opencontainers.image.source=https://gitea.coreplay.eu/Coreplay.eu/MangaForge org.opencontainers.image.revision=6bf75e0 |
| HEALTHCHECK &{Test:[CMD-SHELL python -c "import os,urllib.request;from mangaforge.config import Settings;s=Settings.load();urllib.request.urlopen('http://127.0.0.1:8080'+s.mount+'/health/ready',timeout=3)"] Interval:30s Timeout:5s StartPeriod:10s StartInterval:0s Retries:0} |
| ENTRYPOINT ["/usr/local/bin/mangaforge-entrypoint"] |
| CMD ["api" "--host" "0.0.0.0"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.revision | 6bf75e0 |
| org.opencontainers.image.source | https://gitea.coreplay.eu/Coreplay.eu/MangaForge |
| org.opencontainers.image.title | MangaForge |
Details
Versions (2)
View all