tttbot (1.0.3)
Published 2024-12-31 17:17:34 +01:00 by kenobi
Installation
docker pull gitea.brudi.xyz/magnetotail/tttbot:1.0.3
sha256:471b59a83558dc2f86387495dc3b982ffce7b0e07b2a7039dc2c553758b4b70a
Image Layers
ADD alpine-minirootfs-3.20.3-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-17.0.13+11 |
RUN /bin/sh -c set -eux; ARCH="$(apk --print-arch)"; case "${ARCH}" in x86_64) ESUM='67632ee4563e9827b56f62ab6da95bce200d9e82092b211988c0d2113abc4071'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.13%2B11/OpenJDK17U-jdk_x64_alpine-linux_hotspot_17.0.13_11.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 -r "${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"] |
COPY tttbot-*.jar /opt/tttbot.jar # buildkit |
COPY application.properties /opt/application.properties # buildkit |
WORKDIR /opt |
ENTRYPOINT ["java" "-jar" "tttbot.jar"] |