-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumps base Docker image to Java 21, modifies ENTRYPOINT to be absolute.
- Loading branch information
1 parent
ab85d83
commit 0d22ed1
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |