Skip to content

Instantly share code, notes, and snippets.

@grimrose
Created January 21, 2018 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grimrose/4db13adff8d6524eb5fffbf630406cc2 to your computer and use it in GitHub Desktop.
Save grimrose/4db13adff8d6524eb5fffbf630406cc2 to your computer and use it in GitHub Desktop.
cat sample.puml | docker run --rm plantuml -p -tsvg > img/sample.svg
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