calcbot (sha256:7b208c19fb9527cccbe87c7fcc93daefe4bd9f0680b9fd259f362f544d074b0a)
Installation
docker pull src.krea.to/kreato/calcbot@sha256:7b208c19fb9527cccbe87c7fcc93daefe4bd9f0680b9fd259f362f544d074b0asha256:7b208c19fb9527cccbe87c7fcc93daefe4bd9f0680b9fd259f362f544d074b0aAbout this package
Simple Discord bot made in Swift that uses SoulverCore to read messages and solve equations
Image layers
| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:e67907c77897d27192314f6c4fa0112b6f7dce3e127500516535cc50fe736c92 in / |
| CMD ["/bin/bash"] |
| LABEL maintainer=Swift Infrastructure <swift-infrastructure@forums.swift.org> |
| LABEL description=Docker Container for the Swift programming language |
| RUN /bin/sh -c export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && apt-get -q install -y binutils git unzip gnupg2 libc6-dev libcurl4-openssl-dev libedit2 libgcc-13-dev libpython3-dev libsqlite3-0 libstdc++-13-dev libxml2-dev libncurses-dev libz3-dev pkg-config tzdata zlib1g-dev && rm -r /var/lib/apt/lists/* # buildkit |
| ARG SWIFT_SIGNING_KEY=52BB7E3DE28A71BE22EC05FFEF80A866B47A981F |
| ARG SWIFT_PLATFORM=ubuntu24.04 |
| ARG SWIFT_BRANCH=swift-6.1.2-release |
| ARG SWIFT_VERSION=swift-6.1.2-RELEASE |
| ARG SWIFT_WEBROOT=https://download.swift.org |
| ENV SWIFT_SIGNING_KEY=52BB7E3DE28A71BE22EC05FFEF80A866B47A981F SWIFT_PLATFORM=ubuntu24.04 SWIFT_BRANCH=swift-6.1.2-release SWIFT_VERSION=swift-6.1.2-RELEASE SWIFT_WEBROOT=https://download.swift.org |
| RUN |5 SWIFT_SIGNING_KEY=52BB7E3DE28A71BE22EC05FFEF80A866B47A981F SWIFT_PLATFORM=ubuntu24.04 SWIFT_BRANCH=swift-6.1.2-release SWIFT_VERSION=swift-6.1.2-RELEASE SWIFT_WEBROOT=https://download.swift.org /bin/sh -c set -e; ARCH_NAME="$(dpkg --print-architecture)"; url=; case "${ARCH_NAME##*-}" in 'amd64') OS_ARCH_SUFFIX=''; ;; 'arm64') OS_ARCH_SUFFIX='-aarch64'; ;; *) echo >&2 "error: unsupported architecture: '$ARCH_NAME'"; exit 1 ;; esac; SWIFT_WEBDIR="$SWIFT_WEBROOT/$SWIFT_BRANCH/$(echo $SWIFT_PLATFORM | tr -d .)$OS_ARCH_SUFFIX" && SWIFT_BIN_URL="$SWIFT_WEBDIR/$SWIFT_VERSION/$SWIFT_VERSION-$SWIFT_PLATFORM$OS_ARCH_SUFFIX.tar.gz" && SWIFT_SIG_URL="$SWIFT_BIN_URL.sig" && export DEBIAN_FRONTEND=noninteractive && apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && curl -fsSL "$SWIFT_BIN_URL" -o swift.tar.gz "$SWIFT_SIG_URL" -o swift.tar.gz.sig && gpg --batch --quiet --keyserver keyserver.ubuntu.com --recv-keys "$SWIFT_SIGNING_KEY" && gpg --batch --verify swift.tar.gz.sig swift.tar.gz && tar -xzf swift.tar.gz --directory / --strip-components=1 && chmod -R o+r /usr/lib/swift && rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz && apt-get purge --auto-remove -y curl # buildkit |
| RUN |5 SWIFT_SIGNING_KEY=52BB7E3DE28A71BE22EC05FFEF80A866B47A981F SWIFT_PLATFORM=ubuntu24.04 SWIFT_BRANCH=swift-6.1.2-release SWIFT_VERSION=swift-6.1.2-RELEASE SWIFT_WEBROOT=https://download.swift.org /bin/sh -c swift --version # buildkit |
| WORKDIR /app |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends python3 python3-venv ca-certificates && rm -rf /var/lib/apt/lists/* && python3 -m venv /opt/laya-venv && /opt/laya-venv/bin/pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu && /opt/laya-venv/bin/pip install --no-cache-dir "laya[serve]==0.3.20" # buildkit |
| ENV PATH=/opt/laya-venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV HF_HOME=/opt/laya-cache |
| RUN /bin/sh -c /opt/laya-venv/bin/python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='convaiinnovations/laya', allow_patterns=['multilingual/*'])" # buildkit |
| ENV HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 |
| COPY /calcBot /app/calcBot # buildkit |
| COPY /build/Vendor/SoulverCore-linux /app/Vendor/SoulverCore-linux # buildkit |
| RUN /bin/sh -c cp -R /app/Vendor/SoulverCore-linux/SoulverCore_SoulverCore.resources /app/SoulverCore_SoulverCore.resources # buildkit |
| ENV LD_LIBRARY_PATH=/app/Vendor/SoulverCore-linux |
| ENV LAYA_HOST=127.0.0.1 LAYA_PORT=8000 LAYA_DEVICE=cpu LAYA_PRELOAD=1 LAYA_MODELS=multilingual LAYA_INTENT_URL=http://127.0.0.1:8000/v1/systemone LAYA_INTENT_THRESHOLD=0.80 LAYA_INTENT_TIMEOUT_SECONDS=2.0 |
| COPY docker-entrypoint.sh /app/docker-entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /app/calcBot /app/docker-entrypoint.sh # buildkit |
| ENTRYPOINT ["/app/docker-entrypoint.sh"] |
Labels
| Key | Value |
|---|---|
| description | Docker Container for the Swift programming language |
| maintainer | Swift Infrastructure <swift-infrastructure@forums.swift.org> |
| org.opencontainers.image.created | 2026-09-26T12:40:44.242Z |
| org.opencontainers.image.description | Simple Discord bot made in Swift that uses SoulverCore to read messages and solve equations |
| org.opencontainers.image.licenses | |
| org.opencontainers.image.ref.name | ubuntu |
| org.opencontainers.image.revision | 0bc5883ae698d41ea4187b65546d0dfa9a924abb |
| org.opencontainers.image.source | https://src.krea.to/kreato/calcBot |
| org.opencontainers.image.title | calcBot |
| org.opencontainers.image.url | https://src.krea.to/kreato/calcBot |
| org.opencontainers.image.version | main |
Details
2026-09-26 13:36:27 +00:00
Versions (5)
View all
Container
2
OCI / Docker
linux/amd64
1.9 GiB
main-9cd300b
2026-09-26
latest
2026-09-26
main
2026-09-26
main-0bc5883
2026-09-26
main-56edfb0
2026-06-30