Skip to content

Commit

Permalink
Bumps base Docker image to Java 21, modifies ENTRYPOINT to be absolute.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Dec 29, 2023
1 parent ab85d83 commit 0d22ed1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 0d22ed1

Please sign in to comment.