1
mirror of https://github.com/jakejarvis/hugo-docker.git synced 2025-07-03 13:16:38 -04:00

Install asciidoctor and pygments

This commit is contained in:
2020-02-28 21:52:45 -05:00
parent 4386d9140e
commit f271891869

View File

@ -17,7 +17,14 @@ LABEL maintainer="Jake Jarvis <jake@jarv.is>"
# only install libc6-compat & libstdc++ if we're building extended Hugo # only install libc6-compat & libstdc++ if we're building extended Hugo
# https://gitlab.com/yaegashi/hugo/commit/22f0d5cbd6114210ba7835468facbdee60609aa2 # https://gitlab.com/yaegashi/hugo/commit/22f0d5cbd6114210ba7835468facbdee60609aa2
RUN apk update && \ RUN apk update && \
apk add --no-cache ca-certificates git nodejs ${HUGO_EXTENDED:+libc6-compat libstdc++} && \ apk add --no-cache \
ca-certificates \
git \
nodejs \
asciidoctor \
python3 \
py3-pygments \
${HUGO_EXTENDED:+libc6-compat libstdc++} && \
update-ca-certificates && \ update-ca-certificates && \
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_EXTENDED:+extended_}${HUGO_VERSION}_Linux-64bit.tar.gz && \ wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_EXTENDED:+extended_}${HUGO_VERSION}_Linux-64bit.tar.gz && \
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt && \ wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt && \
@ -27,4 +34,7 @@ RUN apk update && \
chmod +x /usr/bin/hugo && \ chmod +x /usr/bin/hugo && \
rm -rf hugo_* rm -rf hugo_*
# make sure everything's okay
RUN hugo version
ENTRYPOINT ["hugo"] ENTRYPOINT ["hugo"]