1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-22 21:15:09 +00:00
plantuml/Dockerfile

31 lines
636 B
Docker
Raw Normal View History

2022-09-24 18:54:58 +00:00
FROM alpine:latest AS loader
2022-09-24 18:52:12 +00:00
ARG PLANTUML_VERSION
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 eclipse-temurin:17-jre-jammy
2022-09-24 18:54:58 +00:00
ENV LANG en_US.UTF-8
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/*
2022-09-24 18:54:58 +00:00
COPY --from=loader /opt/plantuml.jar /opt/plantuml.jar
WORKDIR /data
ENTRYPOINT ["java", "-jar", "/opt/plantuml.jar"]
CMD ["-version"]