mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-05 21:17:52 +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:
commit
1fe09aea4f
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
14
Dockerfile
14
Dockerfile
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user