Skip to content

Instantly share code, notes, and snippets.

@taiyoh
Created September 14, 2017 09:26
Show Gist options
  • Save taiyoh/cf47a59a01018dfa5b6ae033803d4994 to your computer and use it in GitHub Desktop.
Save taiyoh/cf47a59a01018dfa5b6ae033803d4994 to your computer and use it in GitHub Desktop.
Dockerfile for cmark-gfm
FROM alpine
RUN apk --update add --virtual build-dependencies curl cmake make gcc g++ && rm -rf /var/cache/apk/*
ENV cmark_version=0.27.1.gfm.1
RUN curl -L https://github.com/github/cmark/archive/${cmark_version}.tar.gz -o cmark_${cmark_version}.tar.gz && \
tar xvzf cmark_${cmark_version}.tar.gz && cd cmark-${cmark_version} && mkdir build && cd build && \
cmake .. && make && make test && make install
ENTRYPOINT cmark-gfm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment