apex

cdn-service (8640624)

Published 2026-09-16 20:08:01 +07:00 by tnphi

Installation

docker pull git.omecap.com/apex/cdn-service:8640624
sha256:575983d91a85385022518aea142cb93dec52a55d78834175b44f6b39caa62baf

Images

Digest OS / Arch Size
a26c9ac9d4 linux/amd64 146 MiB

Image Layers ( linux/amd64)

ADD alpine-minirootfs-3.24.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 tzdata coreutils openssl ; rm -rf /var/cache/apk/* # buildkit
ENV JAVA_VERSION=jdk-21.0.12+8
RUN /bin/sh -c set -eux; ARCH="$(apk --print-arch)"; case "${ARCH}" in aarch64) ESUM='a4f70d2be5c55940dd60b6636643a05125e60e6c3dbc2a8402032b0346744dfa'; BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.12%2B8/OpenJDK21U-jre_aarch64_alpine-linux_hotspot_21.0.12_8.tar.gz'; ;; x86_64) ESUM='9a7f8712a2741bb14e2452eed2de99f62d02e05617e27d59f1861a0cdad58486'; BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.12%2B8/OpenJDK21U-jre_x64_alpine-linux_hotspot_21.0.12_8.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"]
WORKDIR /app
ARG GIT_SHA=8640624
LABEL org.opencontainers.image.title=cdn-service org.opencontainers.image.revision=8640624
RUN |1 GIT_SHA=8640624 /bin/sh -c addgroup -S -g 10001 app && adduser -S -D -u 10001 -G app app && mkdir -p /data/cdn-service && chown -R app:app /data /app # buildkit
COPY /workspace/build/libs/app.jar app.jar # buildkit
USER app
ENV FILE_STORAGE_BASE_PATH=/data/cdn-service
ENV SERVER_PORT=8080
EXPOSE [8080/tcp]
HEALTHCHECK {Test:[CMD-SHELL wget -q -O - http://localhost:8080/actuator/health | grep -q '"status":"UP"' || exit 1] Interval:30s Timeout:5s StartPeriod:30s StartInterval:0s Retries:3}
ENTRYPOINT ["java" "-jar" "/app/app.jar"]

Labels

Key Value
org.opencontainers.image.revision 8640624
org.opencontainers.image.title cdn-service
Details
Container
2026-09-16 20:08:01 +07:00
2
OCI / Docker
Versions (1) View all
8640624 2026-09-16