mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-23 03:19:06 +00:00
1b6504d932
It will have to be provided from the outside regardless, or in case it's not, and something else is used - no need to actually use this volume at all.
26 lines
490 B
Docker
26 lines
490 B
Docker
FROM alpine:latest AS loader
|
|
|
|
ARG PLANTUML_VERSION
|
|
|
|
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
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
RUN apk add --no-cache \
|
|
graphviz \
|
|
ttf-dejavu
|
|
|
|
COPY --from=loader /opt/plantuml.jar /opt/plantuml.jar
|
|
|
|
WORKDIR /data
|
|
|
|
ENTRYPOINT ["java", "-jar", "/opt/plantuml.jar"]
|
|
CMD ["-version"] |