Created
July 8, 2023 01:53
-
-
Save p3palazzo/ab2c2fac468fea0f8f737fb6b18ae998 to your computer and use it in GitHub Desktop.
Jekyll+Pandoc Dockerfile
This file contains 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
ARG pandoc_version=3.1.1 | |
ARG jekyll_version=4.2.2 | |
FROM pandoc/core:${pandoc_version} AS pandoc-base | |
RUN apk update \ | |
&& apk --no-cache add \ | |
cabal \ | |
ghc-dev \ | |
libffi-dev \ | |
musl-dev \ | |
wget | |
RUN cabal update && cabal install \ | |
pandoc-sidenote | |
FROM jekyll/jekyll:${jekyll_version} | |
COPY --from=pandoc-base \ | |
/usr/local/bin/pandoc \ | |
/usr/local/bin/pandoc-crossref \ | |
/root/.cabal/bin/pandoc-sidenote \ | |
/usr/local/bin/ | |
RUN apk --no-cache add \ | |
gmp \ | |
libffi \ | |
lua5.4 \ | |
lua5.4-lpeg |
This file contains 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
JEKYLL_VERSION = 4.2.2 | |
PANDOC_VERSION = 3.1.1 | |
push : palazzo/jekyll-pandoc | |
docker push palazzo/jekyll-pandoc:$(JEKYLL_VERSION)-$(PANDOC_VERSION) | |
palazzo/jekyll-pandoc : Dockerfile | |
docker build --pull \ | |
--build-arg jekyll_version=$(JEKYLL_VERSION) \ | |
--build-arg pandoc_version=$(PANDOC_VERSION) \ | |
-t $@ \ | |
. | |
docker tag $@ \ | |
$@:$(JEKYLL_VERSION)-$(PANDOC_VERSION) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment