From a4c86917d5d7a3e0dc56be6e6a8fb8337da97d65 Mon Sep 17 00:00:00 2001 From: emmanuelsoon Date: Fri, 17 May 2024 11:47:55 +0800 Subject: [PATCH] update docker file --- docker/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 368f7a9d..f8ed7f35 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,16 +9,17 @@ # ARG DOCKER_REGISTRY -FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}openjdk:11-jdk +FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}eclipse-temurin:11-jdk-focal RUN mkdir /zu COPY zu /zu WORKDIR /zu RUN ./gradlew --console=verbose --info shadowJar -FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}zookeeper:3.7.2 +FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}zookeeper:3.8.2-temurin COPY bin /usr/local/bin RUN chmod +x /usr/local/bin/* COPY --from=0 /zu/build/libs/zu.jar /opt/libs/ RUN apt-get -q update && \ - apt-get install -y dnsutils curl procps socat + apt-get install -y dnsutils curl procps socat; \ + rm -rf /var/lib/apt/lists/*; \ No newline at end of file