contentgruen-txtai (sha256:8e34148945defd62a15f236b018202bbd696b18018bf3bcf59105f68e876651e)

Published 2024-10-27 13:14:02 +01:00 by WoodpeckerCI

Installation

docker pull git.verdigado.com/netzbegruenung-images/contentgruen-txtai@sha256:8e34148945defd62a15f236b018202bbd696b18018bf3bcf59105f68e876651e
sha256:8e34148945defd62a15f236b018202bbd696b18018bf3bcf59105f68e876651e

Image Layers

ADD file:087f68d5558e06c7160c9322582925635e7539a7702413828357c28c77f6f345 in /
CMD ["bash"]
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/*
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/*
/bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 default-libmysqlclient-dev dpkg-dev file g++ gcc imagemagick libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch unzip xz-utils zlib1g-dev ; rm -rf /var/lib/apt/lists/*
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 libbluetooth-dev tk-dev uuid-dev ; rm -rf /var/lib/apt/lists/* # buildkit
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
ENV PYTHON_VERSION=3.11.10
RUN /bin/sh -c set -eux; 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; 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-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" "PROFILE_TASK=${PROFILE_TASK:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" "PROFILE_TASK=${PROFILE_TASK:-}" python ; make install; bin="$(readlink -ve /usr/local/bin/python3)"; dir="$(dirname "$bin")"; mkdir -p "/usr/share/gdb/auto-load/$dir"; cp -vL Tools/gdb/libpython.py "/usr/share/gdb/auto-load/$bin-gdb.py"; 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; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==65.5.1' wheel ; 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"]
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
LABEL maintainer=Sebastian Ramirez <tiangolo@gmail.com>
COPY requirements.txt /tmp/requirements.txt # buildkit
RUN /bin/sh -c pip install --no-cache-dir -r /tmp/requirements.txt # buildkit
COPY ./start.sh /start.sh # buildkit
RUN /bin/sh -c chmod +x /start.sh # buildkit
COPY ./gunicorn_conf.py /gunicorn_conf.py # buildkit
COPY ./start-reload.sh /start-reload.sh # buildkit
RUN /bin/sh -c chmod +x /start-reload.sh # buildkit
COPY ./app /app # buildkit
WORKDIR /app/
ENV PYTHONPATH=/app
CMD ["/start.sh"]
LABEL maintainer=Sebastian Ramirez <tiangolo@gmail.com>
COPY requirements.txt /tmp/requirements.txt # buildkit
RUN /bin/sh -c pip install --no-cache-dir -r /tmp/requirements.txt # buildkit
COPY ./app /app # buildkit
RUN /bin/sh -c rm -rf /app # buildkit
COPY requirements.txt . # buildkit
RUN /bin/sh -c pip install --no-cache-dir -r requirements.txt # buildkit
COPY ./app /app # buildkit
COPY ./initial_data /initial_data # buildkit
EXPOSE map[8000/tcp:{}]
WORKDIR /app/
CMD ["uvicorn" "main:app" "--host" "0.0.0.0" "--port" "8000"]

Labels

Key Value
maintainer Sebastian Ramirez <tiangolo@gmail.com>
org.opencontainers.image.created 2024-10-27T11:59:36Z
org.opencontainers.image.revision a349efe60331c50c0aae5763c1b896083353e7e2
org.opencontainers.image.source https://git.verdigado.com/Netzbegruenung/contentgruen.git
org.opencontainers.image.url https://git.verdigado.com/Netzbegruenung/contentgruen
Details
Container
2024-10-27 13:14:02 +01:00
1
OCI / Docker
linux/amd64
3.2 GiB
Versions (22) View all