Block a user
psytican-bot (20241127.1-dev1)
Published 2024-11-27 16:11:13 +00:00 by genesis
Installation
docker pull git.psynet.su/genesis/psytican-bot:20241127.1-dev1sha256:5aebbae8d791364634a8de361534cd8faaaa7a38e9a16c597ec71b5ba0af768dAbout this package
Psytican chat helper bot image
Image Layers
| ADD rootfs.tar.xz / # buildkit |
| CMD ["bash"] |
| RUN /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/* # buildkit |
| RUN /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/* # buildkit |
| RUN /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/* # buildkit |
| 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=7169605F62C751356D054A26A821E680E5FA6305 |
| ENV PYTHON_VERSION=3.12.7 |
| ENV PYTHON_SHA256=24887b92e2afd4a2ac602419ad4b596372f67ac9b077190f459aba390faf5550 |
| 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"; 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 --with-lto --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; 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; 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 --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"] |
| LABEL org.opencontainers.image.authors=Igor I Shatunov |
| LABEL org.opencontainers.image.source=https://github.com/raider444/psytican-bot |
| LABEL org.opencontainers.image.description=Psytican chat helper bot image |
| LABEL org.opencontainers.image.licenses=MIT |
| ARG POETRY_VERSION=1.4.2 POETRY_HOME=/usr/local |
| RUN |2 POETRY_VERSION=1.4.2 POETRY_HOME=/usr/local /bin/sh -c mkdir -p /opt/psytican/psytican-bot && addgroup --gid 2000 psytican && useradd -d /opt/psytican -s /bin/bash -g psytican -u 2000 psytican && chown -R psytican:psytican /opt/psytican && apt-get update -y && apt-get install -y curl && pip install setuptools && curl -sSL https://install.python-poetry.org | python3 - && poetry config virtualenvs.create false && apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/ # buildkit |
| WORKDIR /opt/psytican/psytican-bot |
| COPY pyproject.toml poetry.lock* setup.cfg ./ # buildkit |
| RUN |2 POETRY_VERSION=1.4.2 POETRY_HOME=/usr/local /bin/sh -c poetry install --no-ansi --no-root --without=dev # buildkit |
| ARG DEV_VERSION=20241127.1-dev+23432432 |
| ENV PYTHONPATH=/opt/psytican/psytican-bot |
| ENV PORT=8000 |
| COPY . . # buildkit |
| RUN |3 POETRY_VERSION=1.4.2 POETRY_HOME=/usr/local DEV_VERSION=20241127.1-dev+23432432 /bin/sh -c poetry build && poetry version ${DEV_VERSION} && poetry install --no-ansi # buildkit |
| ENTRYPOINT ["psytican-bot"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.authors | Igor I Shatunov |
| org.opencontainers.image.description | Psytican chat helper bot image |
| org.opencontainers.image.licenses | MIT |
| org.opencontainers.image.source | https://github.com/raider444/psytican-bot |
Details
2024-11-27 16:11:13 +00:00
Versions (1)
View all
Container
14
OCI / Docker
linux/amd64
Igor I Shatunov
MIT
566 MiB
20241127.1-dev1
2024-11-27