mermaid-docker/Dockerfile

15 lines
377 B
Docker

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"]