mermaid-docker/Dockerfile

15 lines
377 B
Docker
Raw Normal View History

2017-10-29 17:55:33 +01:00
FROM node:8.8.1
RUN mkdir /tmp/phantomjs \
&& curl -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 \
| tar -xj --strip-components=1 -C /tmp/phantomjs \
&& mv /tmp/phantomjs/bin/phantomjs /usr/bin \
&& rm -rf /tmp/phantomjs
RUN yarn global add mermaid@7.0.11
WORKDIR /data
ENTRYPOINT ["mermaid"]
CMD ["--help"]