diff --git a/Dockerfile b/Dockerfile index 2488cff9b..1ddfe6b5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,6 @@ -FROM eclipse-temurin:21.0.7_6-jre-noble@sha256:862bb9fb9cf8272e02d07b44bf0812ed765c090aec572a18ab9d2e94be8d4bfd +FROM eclipse-temurin:21.0.7_6-jre-alpine@sha256:8728e354e012e18310faa7f364d00185277dec741f4f6d593af6c61fc0eb15fd -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update && \ - apt-get install libjemalloc2 -y && \ - apt-get purge wget libncurses6 -y && \ - apt-get autoremove -y && apt-get clean && \ - rm -rf /var/lib/apt/lists/ +RUN apk add jemalloc RUN mkdir -p /app/data && chown 1001:1001 /app/data COPY target/blaze-1.0.3-standalone.jar /app/ @@ -22,4 +16,6 @@ ENV RESOURCE_DB_DIR="/app/data/resource" ENV ADMIN_INDEX_DB_DIR="/app/data/admin-index" ENV ADMIN_TRANSACTION_DB_DIR="/app/data/admin-transaction" +HEALTHCHECK --start-period=30s CMD wget --spider http://localhost:8080/health + CMD ["java", "-jar", "blaze-1.0.3-standalone.jar"] diff --git a/build.clj b/build.clj index cac47e103..89c168b62 100644 --- a/build.clj +++ b/build.clj @@ -102,10 +102,13 @@ "^HISTORY-JAVA.md" "^dse_protocol_v\\d.spec" "^native_protocol_v\\d.spec" - ".*-musl.so$" ".*-ppc64le.so$" + ".*-ppc64le-musl.so$" ".*-s390x.so$" + ".*-s390x-musl.so$" ".*-linux32.so$" + ".*-linux32-musl.so$" + ".*-riscv64.so$" ".*.dll$" ".*.jnilib$"] :conflict-handlers