2017-09-16 10:54:20 +00:00
|
|
|
FROM alpine:3.6
|
2016-09-25 10:31:24 +00:00
|
|
|
MAINTAINER Ryan Kes <ryan@andthensome.nl>
|
2017-09-15 19:37:51 +00:00
|
|
|
ADD VERSION .
|
2016-09-25 10:31:24 +00:00
|
|
|
|
2017-09-15 23:19:16 +00:00
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
ARG VCS_URL
|
|
|
|
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
|
|
|
org.label-schema.vcs-url=$VCS_URL \
|
|
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
2017-09-15 23:27:53 +00:00
|
|
|
org.label-schema.schema-version="1.0.0-rc1"
|
2017-09-15 23:19:16 +00:00
|
|
|
|
2017-12-13 16:11:13 +00:00
|
|
|
ENV HUGO_VERSION 0.31.1
|
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/
|
2017-08-15 10:21:01 +00:00
|
|
|
RUN tar xzf /usr/local/${HUGO_BINARY}.tar.gz -C /usr/local/bin/ \
|
|
|
|
&& rm /usr/local/${HUGO_BINARY}.tar.gz
|