Skip to content

Commit

Permalink
Upgrade to zk 3.8, upgrade to temurin java-11, delete apt cache
Browse files Browse the repository at this point in the history
  • Loading branch information
janhoy committed Nov 23, 2022
1 parent c29d475 commit 0435f17
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.1
FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}zookeeper:3.8-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/*;

0 comments on commit 0435f17

Please sign in to comment.