java-project

baiyue-firstleg/file (3e0d8d6c8849)

Published 2026-10-26 19:48:01 +08:00 by admin

Installation

docker pull git.buggoglobal.com/java-project/baiyue-firstleg/file:3e0d8d6c8849
sha256:b8e4c4efd79c98a12104dd24838e8426f7204ad4b9384ebc666c5b900a018047

Image Layers

ADD alpine-minirootfs-3.24.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 tzdata coreutils openssl ; rm -rf /var/cache/apk/* # buildkit
ENV JAVA_VERSION=jdk-17.0.20.1+1
RUN /bin/sh -c set -eux; ARCH="$(apk --print-arch)"; case "${ARCH}" in aarch64) echo "Temurin ${JAVA_VERSION} binary for ${ARCH} is not available yet; retry after it is published upstream."; exit 1; ;; x86_64) ESUM='72423b1464907857f4e7ca854a2b8fd9f7cf6b9dd15bd3ea31ef6cf33b097aea'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.20.1%2B1/OpenJDK17U-jre_x64_alpine-linux_hotspot_17.0.20.1_1.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; # buildkit
RUN /bin/sh -c set -eux; echo "Verifying install ..."; echo "java --version"; java --version; echo "Complete." # buildkit
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh # buildkit
ENTRYPOINT ["/__cacert_entrypoint.sh"]
/bin/sh -c addgroup -S app && adduser -S -G app -u 10001 app
WORKDIR /app
/bin/sh -c mkdir -p /data/files && chown -R app:app /data
COPY --chown=app:app dir:f10381d56da99a64712807a7c613df4ed34cf3f1602e2bb6e396a9c07ace16f9 in ./
COPY --chown=app:app dir:77b1ebcc31b93e1e50649bf6555e3f771cf11d44ce9df7a14952bd7233885973 in ./
COPY --chown=app:app dir:3f382c3714024572cf21653b9f673af55e4a222ee3c2c01fc8c46d5718adb1ed in ./
COPY --chown=app:app dir:a372b8340e2950de2ed3c569371bc2c9d7e5754a72b7b77db7ac527293064d8f in ./
USER app
ENV JAVA_OPTS=-XX:MaxRAMPercentage=75.0 -XX:+ExitOnOutOfMemoryError -Dfile.encoding=UTF-8 SERVER_PORT=8080
EXPOSE 8080
HEALTHCHECK &{["CMD-SHELL" "busybox wget -q -O /dev/null \"http://127.0.0.1:${SERVER_PORT}/actuator/health\" || exit 1"] "30s" "5s" "1m0s" "0s" '\x03'}
ENTRYPOINT ["sh" "-c" "exec java $JAVA_OPTS org.springframework.boot.loader.launch.JarLauncher"]
Details
Container
2026-10-26 19:48:01 +08:00
2
OCI / Docker
linux/amd64
179 MiB
Versions (10) View all
705c732ffdc0 2026-10-27
3e0d8d6c8849 2026-10-26
be9f5d2a30e4 2026-10-26
3616e9db04bf 2026-10-23
de96e47d7494 2026-10-22