From 0d22ed18b56f684eab8d517a072a414a26ef6c62 Mon Sep 17 00:00:00 2001 From: Simon Brown Date: Fri, 29 Dec 2023 10:19:53 +0000 Subject: [PATCH] Bumps base Docker image to Java 21, modifies ENTRYPOINT to be absolute. --- Dockerfile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31ef021..3fea5ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ -FROM eclipse-temurin:17.0.8.1_1-jre-jammy +FROM eclipse-temurin:21.0.1_12-jre-jammy -WORKDIR /usr/local/structurizr-cli/ -ENV PATH /usr/local/structurizr-cli/:$PATH -COPY build/distributions/structurizr-cli-*.zip ./ -RUN apt-get update && apt-get install -y unzip && apt install -y graphviz && rm -rf /var/lib/apt/lists/* -RUN unzip /usr/local/structurizr-cli/structurizr-cli-*.zip && chmod +x structurizr.sh -WORKDIR /usr/local/structurizr/ +RUN apt-get update && apt-get install -y unzip && apt install -y graphviz && rm -rf /var/lib/apt/lists/* -ENTRYPOINT ["structurizr.sh"] +COPY build/distributions/structurizr-cli-*.zip /tmp + +RUN unzip /tmp/structurizr-cli-*.zip -d /usr/local/structurizr-cli && chmod +x /usr/local/structurizr-cli/structurizr.sh + +WORKDIR /usr/local/structurizr + +ENTRYPOINT ["/usr/local/structurizr-cli/structurizr.sh"] \ No newline at end of file