baiyue-firstleg/gateway (c962f614e64b)
Published 2026-10-21 16:46:58 +08:00 by admin
Installation
docker pull git.buggoglobal.com/java-project/baiyue-firstleg/gateway:c962f614e64bsha256:d53e657463a19d155db0c8a3de3913bf81804af60b2e15da3595f4d992174a81
Image Layers
| ADD alpine-minirootfs-3.24.2-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:5ef86e5e32a42feccacb3ba111ba55b117c4e5f58acc9b9aa7ebd52a5751b193 in ./ |
| COPY --chown=app:app dir:77b1ebcc31b93e1e50649bf6555e3f771cf11d44ce9df7a14952bd7233885973 in ./ |
| COPY --chown=app:app dir:3f382c3714024572cf21653b9f673af55e4a222ee3c2c01fc8c46d5718adb1ed in ./ |
| COPY --chown=app:app dir:6608395fda0932d8b1d73fc756a3f9f4f8e29f26fa2669336961bad9f95a7d4f 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
2026-10-21 16:46:58 +08:00
Versions (10)
View all
Container
2
OCI / Docker
linux/amd64
130 MiB
3616e9db04bf
2026-10-23
de96e47d7494
2026-10-22
c962f614e64b
2026-10-21
f00d0e16cfca
2026-10-21
16d2d9111a44
2026-10-08