1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 02:49:06 +00:00

Merge pull request #1262 from denisa/master

1252:  Use eclipse-temurin:17-jre-jammy and generate both amd64 and arm64 images
This commit is contained in:
PlantUML 2023-01-14 12:03:45 +01:00 committed by GitHub
commit 1fe09aea4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 5 deletions

View File

@ -177,6 +177,10 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
@ -211,3 +215,4 @@ jobs:
PLANTUML_VERSION=${{ github.event.ref }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64

View File

@ -10,17 +10,21 @@ RUN wget \
"https://github.com/plantuml/plantuml/releases/download/${PLANTUML_VERSION}/plantuml-${PLANTUML_VERSION#?}.jar" \
-O /opt/plantuml.jar
FROM openjdk:17-alpine
FROM eclipse-temurin:17-jre-jammy
ENV LANG en_US.UTF-8
RUN apk add --no-cache \
graphviz \
ttf-dejavu
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
graphviz \
fonts-dejavu \
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY --from=loader /opt/plantuml.jar /opt/plantuml.jar
WORKDIR /data
ENTRYPOINT ["java", "-jar", "/opt/plantuml.jar"]
CMD ["-version"]
CMD ["-version"]