2022-09-24 18:54:58 +00:00
|
|
|
FROM alpine:latest AS loader
|
2022-07-27 22:41:16 +00:00
|
|
|
|
2022-09-24 18:52:12 +00:00
|
|
|
ARG PLANTUML_VERSION
|
2022-07-27 22:41:16 +00:00
|
|
|
|
2022-09-24 18:54:58 +00:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
wget \
|
|
|
|
ca-certificates
|
|
|
|
|
|
|
|
RUN wget \
|
|
|
|
"https://github.com/plantuml/plantuml/releases/download/${PLANTUML_VERSION}/plantuml-${PLANTUML_VERSION#?}.jar" \
|
|
|
|
-O /opt/plantuml.jar
|
|
|
|
|
|
|
|
FROM openjdk:17-alpine
|
|
|
|
|
2022-07-27 22:41:16 +00:00
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
|
2022-09-24 18:54:58 +00:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
graphviz \
|
|
|
|
ttf-dejavu
|
|
|
|
|
|
|
|
COPY --from=loader /opt/plantuml.jar /opt/plantuml.jar
|
2022-07-27 22:41:16 +00:00
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
|
|
|
|
ENTRYPOINT ["java", "-jar", "/opt/plantuml.jar"]
|
|
|
|
CMD ["-version"]
|