Created
January 21, 2018 14:29
-
-
Save grimrose/4db13adff8d6524eb5fffbf630406cc2 to your computer and use it in GitHub Desktop.
cat sample.puml | docker run --rm plantuml -p -tsvg > img/sample.svg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:alpine | |
ENV PLANTUML_VERSION 1.2018.0 | |
ENV LANG ja_JP.UTF-8 | |
RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories | |
WORKDIR /app | |
RUN apk update \ | |
&& apk upgrade \ | |
&& apk add --no-cache graphviz curl fontconfig font-ipa@testing \ | |
&& curl -L https://sourceforge.net/projects/plantuml/files/${PLANTUML_VERSION}/plantuml.${PLANTUML_VERSION}.jar/download -o plantuml.jar | |
ENTRYPOINT ["java", "-Djava.awt.headless=true", "-jar", "plantuml.jar"] | |
CMD ["-h"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment