ocr-forgejo (latest)

Published 2026-08-05 00:03:47 +02:00 by ocr-bot

Installation

docker pull git.evobug.com/evobug/ocr-forgejo:latest
sha256:b879823f0de93f45c6e50cb78e787e8f0e743bb5f3fd7e73c83326487d9a935c

About this package

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

Image layers

ADD alpine-minirootfs-3.22.4-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ARG BUN_RUNTIME_TRANSPILER_CACHE_PATH=0
ENV BUN_RUNTIME_TRANSPILER_CACHE_PATH=0
ARG BUN_INSTALL_BIN=/usr/local/bin
ENV BUN_INSTALL_BIN=/usr/local/bin
COPY /usr/local/bin/bun /usr/local/bin/ # buildkit
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
RUN |2 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 BUN_INSTALL_BIN=/usr/local/bin /bin/sh -c mkdir -p /usr/local/bun-node-fallback-bin && ln -s /usr/local/bin/bun /usr/local/bun-node-fallback-bin/node # buildkit
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bun-node-fallback-bin
RUN |2 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 BUN_INSTALL_BIN=/usr/local/bin /bin/sh -c addgroup -g 1000 bun && adduser -u 1000 -G bun -s /bin/sh -D bun && ln -s /usr/local/bin/bun /usr/local/bin/bunx && apk add libgcc libstdc++ && which bun && which bunx && bun --version # buildkit
WORKDIR /home/bun/app
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["/usr/local/bin/bun"]
ARG OCR_VERSION=v1.8.8
RUN |1 OCR_VERSION=v1.8.8 /bin/sh -c apk add --no-cache nodejs git ca-certificates curl bash tar # buildkit
RUN |1 OCR_VERSION=v1.8.8 /bin/sh -c set -eux; arch="$(uname -m)"; case "$arch" in x86_64) asset="opencodereview-linux-amd64" ;; aarch64) asset="opencodereview-linux-arm64" ;; *) echo "unsupported architecture: $arch" >&2; exit 1 ;; esac; base="https://github.com/alibaba/open-code-review/releases/download/${OCR_VERSION}"; curl -fsSL -o /tmp/ocr "${base}/${asset}"; curl -fsSL -o /tmp/sha256sum.txt "${base}/sha256sum.txt"; want="$(awk -v a="$asset" '$2 == a {print tolower($1)}' /tmp/sha256sum.txt)"; [ -n "$want" ] || { echo "no checksum entry for $asset" >&2; exit 1; }; got="$(sha256sum /tmp/ocr | awk '{print tolower($1)}')"; [ "$got" = "$want" ] || { echo "checksum mismatch: got $got want $want" >&2; exit 1; }; install -m 0755 /tmp/ocr /usr/local/bin/ocr; rm -f /tmp/ocr /tmp/sha256sum.txt; ocr --version # buildkit
COPY post-review.ts run-review.ts /usr/local/lib/ocr-forgejo/ # buildkit
RUN |1 OCR_VERSION=v1.8.8 /bin/sh -c set -eux; printf '#!/bin/sh\nexec bun /usr/local/lib/ocr-forgejo/run-review.ts "$@"\n' > /usr/local/bin/ocr-forgejo-review; printf '#!/bin/sh\nexec bun /usr/local/lib/ocr-forgejo/post-review.ts "$@"\n' > /usr/local/bin/ocr-post-review; chmod 0755 /usr/local/bin/ocr-forgejo-review /usr/local/bin/ocr-post-review # buildkit
ENTRYPOINT []
CMD ["sh"]
USER root

Labels

Key Value
org.opencontainers.image.created 2026-05-13T03:50:34.645Z
org.opencontainers.image.description Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
org.opencontainers.image.licenses NOASSERTION
org.opencontainers.image.revision 0d9b296af33f2b851fcbf4df3e9ec89751734ba4
org.opencontainers.image.source https://github.com/oven-sh/bun
org.opencontainers.image.title bun
org.opencontainers.image.url https://github.com/oven-sh/bun
org.opencontainers.image.version 1.3.14-alpine
Details
Container
2026-08-05 00:03:47 +02:00
77
OCI / Docker
linux/amd64
NOASSERTION
84 MiB
Versions (3) View all
latest 2026-08-05
v1.8.8 2026-08-05
probe 2026-08-04