Block a user
alfred (sha256:e50ae6ba03f8eb2cb4edee12d6b9481c42267dc9f1e66fc3c6211c2b074acf0e)
Published 2025-09-13 19:45:08 +00:00 by c4605
Installation
docker pull git.c4605.com/c4605/alfred@sha256:e50ae6ba03f8eb2cb4edee12d6b9481c42267dc9f1e66fc3c6211c2b074acf0esha256:e50ae6ba03f8eb2cb4edee12d6b9481c42267dc9f1e66fc3c6211c2b074acf0eImage Layers
| ADD alpine-minirootfs-3.22.1-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ENV JAVA_HOME=/opt/java/openjdk |
| ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 |
| RUN /bin/sh -c set -eux; apk add --no-cache fontconfig ttf-dejavu gnupg ca-certificates p11-kit-trust musl-locales musl-locales-lang binutils tzdata coreutils openssl ; rm -rf /var/cache/apk/* # buildkit |
| ENV JAVA_VERSION=jdk-24.0.2+12 |
| RUN /bin/sh -c set -eux; ARCH="$(apk --print-arch)"; case "${ARCH}" in aarch64) ESUM='5563867bf1abfc466c59bf3d08e9957a30666fe96fb8f9c5bae939ab11d262d5'; BINARY_URL='https://github.com/adoptium/temurin24-binaries/releases/download/jdk-24.0.2%2B12/OpenJDK24U-jdk_aarch64_alpine-linux_hotspot_24.0.2_12.tar.gz'; ;; x86_64) ESUM='947ba234c65cdbd4d852e8f2812334ed093530d86b32cca5d9b45d6672186f77'; BINARY_URL='https://github.com/adoptium/temurin24-binaries/releases/download/jdk-24.0.2%2B12/OpenJDK24U-jdk_x64_alpine-linux_hotspot_24.0.2_12.tar.gz'; ;; *) echo "Unsupported arch: ${ARCH}"; exit 1; ;; esac; wget -O /tmp/openjdk.tar.gz ${BINARY_URL}; wget -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; rm -rf "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; mkdir -p "$JAVA_HOME"; tar --extract --file /tmp/openjdk.tar.gz --directory "$JAVA_HOME" --strip-components 1 --no-same-owner ; rm -f /tmp/openjdk.tar.gz ${JAVA_HOME}/lib/src.zip; # buildkit |
| RUN /bin/sh -c set -eux; echo "Verifying install ..."; fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; echo "javac --version"; javac --version; echo "java --version"; java --version; echo "Complete." # buildkit |
| COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh # buildkit |
| ENTRYPOINT ["/__cacert_entrypoint.sh"] |
| CMD ["jshell"] |
| ENV CLOJURE_VERSION=1.12.2.1565 |
| WORKDIR /tmp |
| RUN /bin/sh -c apk add --no-cache curl bash make git rlwrap && curl -fsSLO https://download.clojure.org/install/linux-install-$CLOJURE_VERSION.sh && sha256sum linux-install-$CLOJURE_VERSION.sh && echo "68442caaeaaa0780957953dfac11278e3991d3baeb22579fc582ed1b2d5cd152 *linux-install-$CLOJURE_VERSION.sh" | sha256sum -c - && chmod +x linux-install-$CLOJURE_VERSION.sh && ./linux-install-$CLOJURE_VERSION.sh && rm linux-install-$CLOJURE_VERSION.sh && clojure -e "(clojure-version)" && apk del curl # buildkit |
| COPY rlwrap.retry /usr/local/bin/rlwrap # buildkit |
| COPY entrypoint /usr/local/bin/entrypoint # buildkit |
| ENTRYPOINT ["entrypoint"] |
| CMD ["-M" "--repl"] |
| MAINTAINER c4605 <bolasblack@gmail.com> |
| ENV CLOJURE_VERSION=1.12.1 |
| WORKDIR /app |
| RUN /bin/sh -c apk update && apk add --no-cache nodejs yarn jq # buildkit |
| RUN /bin/sh -c mkdir -p /app && mkdir -p /app-volume && ln -s /app-volume/config.coffee /app/config.coffee # buildkit |
| COPY . /app # buildkit |
| RUN /bin/sh -c yarn && yarn build-cljs && rm -rf node_modules && yarn --prod && yarn cache clean # buildkit |
| EXPOSE map[8080/tcp:{}] |
| CMD ["yarn" "start"] |