2016-09-25 10:31:24 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
MAINTAINER Ryan Kes <ryan@andthensome.nl>
|
|
|
|
|
2017-08-15 10:12:32 +00:00
|
|
|
ENV HUGO_VERSION 0.26
|
2016-09-25 10:31:24 +00:00
|
|
|
ENV HUGO_BINARY hugo_${HUGO_VERSION}_linux-64bit
|
|
|
|
|
|
|
|
# Install pygments (for syntax highlighting)
|
|
|
|
RUN apk update && apk add py-pygments && apk add git && apk add bash && rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
# Download and Install hugo
|
2017-08-15 10:16:55 +00:00
|
|
|
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY}.tar.gz /usr/local/
|
2016-09-25 10:31:24 +00:00
|
|
|
RUN tar xzf /usr/local/${HUGO_BINARY}.tgz -C /usr/local/bin/ \
|
2017-08-15 10:00:45 +00:00
|
|
|
&& rm /usr/local/${HUGO_BINARY}.tgz
|