mithril (3f990dc70229272c9302e6c4eaf004acddd50f02)
Published 2026-11-26 15:43:35 +00:00 by evan
Installation
docker pull git.rbtr.dev/laputacloudco/mithril:3f990dc70229272c9302e6c4eaf004acddd50f02sha256:a8c44cfd6ca1decbd95262db1ff488b7c8e5ac3a3672f303c61ace8fff308341Image layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1795392000' |
| RUN /bin/sh -c groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node # buildkit |
| ENV NODE_VERSION=24.22.3 |
| RUN /bin/sh -c ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) ARCH='x64' OPENSSL_ARCH='linux-x86_64';; ppc64el) ARCH='ppc64le' OPENSSL_ARCH='linux-ppc64le';; arm64) ARCH='arm64' OPENSSL_ARCH='linux-aarch64';; *) echo "unsupported architecture"; exit 1 ;; esac && set -ex && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils libatomic1 --no-install-recommends && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && for key in 5BE8A3F6C8A5C01D106C0AD820B1A390B168D356 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 CC68F5A3106FF448322E48ED27F5E38D5B0A215F 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A 655F3B5C1FB3FA8D1A0CA6BDE4A7D232B936D2FD A363A499291CBBC940DD62E41F10027AF002F8B0 ; do { gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || { gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apt-mark auto '.*' > /dev/null && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && ln -s /usr/local/bin/node /usr/local/bin/nodejs && node --version && npm --version && rm -rf /tmp/* # buildkit |
| ENV YARN_VERSION=1.22.22 |
| RUN /bin/sh -c set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do { gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || { gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apt-mark auto '.*' > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; } && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && yarn --version && rm -rf /tmp/* # buildkit |
| COPY docker-entrypoint.sh /usr/local/bin/ # buildkit |
| ENTRYPOINT ["docker-entrypoint.sh"] |
| CMD ["node"] |
| COPY /usr/local/go /usr/local/go # buildkit |
| ENV PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends bash ca-certificates chromium curl git libnss3-tools mitmproxy python3 socat tini && rm -rf /var/lib/apt/lists/* # buildkit |
| ARG KUBECTL_VERSION=v1.37.0 |
| ARG KUBECTL_SHA256=6129359f4e1f3848a5572ccb0b26cf28b8ca08cef38c95a765b2f64a2c961a2f |
| RUN |2 KUBECTL_VERSION=v1.37.0 KUBECTL_SHA256=6129359f4e1f3848a5572ccb0b26cf28b8ca08cef38c95a765b2f64a2c961a2f /bin/sh -c mkdir -p /usr/local/libexec && curl -fsSLo /usr/local/libexec/kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && echo "${KUBECTL_SHA256} /usr/local/libexec/kubectl" | sha256sum -c - && chmod 0755 /usr/local/libexec/kubectl # buildkit |
| COPY bin/kubectl /usr/local/bin/kubectl # buildkit |
| WORKDIR /app |
| COPY package.json package-lock.json ./ # buildkit |
| COPY /build/packages/contracts/package.json ./packages/contracts/package.json # buildkit |
| COPY /build/packages/contracts/dist ./packages/contracts/dist # buildkit |
| COPY vendor/matrix-native ./vendor-matrix-native # buildkit |
| RUN |2 KUBECTL_VERSION=v1.37.0 KUBECTL_SHA256=6129359f4e1f3848a5572ccb0b26cf28b8ca08cef38c95a765b2f64a2c961a2f /bin/sh -c npm ci --omit=dev --ignore-scripts --no-audit --no-fund && test -d node_modules/agent-browser && test -d node_modules/pi-lens && cp ./vendor-matrix-native/matrix-sdk-crypto.linux-x64-gnu.node node_modules/@matrix-org/matrix-sdk-crypto-nodejs/ && test "$(sha256sum node_modules/@matrix-org/matrix-sdk-crypto-nodejs/matrix-sdk-crypto.linux-x64-gnu.node | cut -d' ' -f1)" = "$(cat ./vendor-matrix-native/matrix-sdk-crypto.linux-x64-gnu.node.sha256)" && node -e "const sdk=require('matrix-bot-sdk');const napi=require('@matrix-org/matrix-sdk-crypto-nodejs');if(typeof sdk.MatrixClient!=='function'||typeof napi.OlmMachine?.initialize!=='function')throw new Error('Matrix SDK or native binding failed to load');if(napi.StoreType?.Sqlite===undefined)throw new Error('NAPI StoreType.Sqlite unavailable')" && chmod +x node_modules/agent-browser/bin/agent-browser-linux-* && chmod +x node_modules/@earendil-works/pi-env/bin/pi-env-linux-*/pi-env && npm cache clean --force # buildkit |
| ENV AGENT_BROWSER_EXECUTABLE_PATH=/usr/bin/chromium |
| COPY /build/dist/ ./ # buildkit |
| ARG MITHRIL_SOURCE_REVISION=3f990dc70229272c9302e6c4eaf004acddd50f02 |
| ENV MITHRIL_SOURCE_REVISION=3f990dc70229272c9302e6c4eaf004acddd50f02 |
| LABEL org.opencontainers.image.revision=3f990dc70229272c9302e6c4eaf004acddd50f02 |
| USER node |
| EXPOSE [8080/tcp] |
| CMD ["node" "src/server.mjs"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.revision | 3f990dc70229272c9302e6c4eaf004acddd50f02 |
Details
2026-11-26 15:43:35 +00:00
2026-11-26 15:43:57 +00:00
Versions (189)
View all
Container
2
OCI / Docker
linux/amd64
636 MiB
3f990dc70229272c9302e6c4eaf004acddd50f02
2026-11-26
17dbb53b8648051bc9dc2e2c363b45e0a6cdf0dd
2026-11-26
c77a5fdbd6a574c17c8b79b36a09cb7efd70a4b6
2026-11-26
f64cd274c2ff9157a64387aa819111f3dbbd558b
2026-11-26
6c9af675f12cf96978ce4de8b3e27bb56571fcb4
2026-11-26