From e560ccad99fc7c612ed5658365f44487ae3992df Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 25 Sep 2016 12:31:24 +0200 Subject: [PATCH] added dockerfile --- Dockerfile | 13 +++++++++++++ README.md | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cb24ff3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine:latest +MAINTAINER Ryan Kes + +ENV HUGO_VERSION 0.16 +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 +ADD https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY}.tgz /usr/local/ +RUN tar xzf /usr/local/${HUGO_BINARY}.tgz -C /usr/local/bin/ \ + && rm /usr/local/${HUGO_BINARY}.tgz \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..0201d77 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Docker Alpine Hugo Git Bash + +Minimal container with [Hugo](https://gohugo.io), Git & Bash installed. Built to be used with [wercker](http://wercker.com/). Leverages [alpine](https://hub.docker.com/_/alpine/) base image. + +## Usage + + docker run --rm andthensome/alpine-hugo-git-bash \ No newline at end of file