summaryrefslogtreecommitdiffhomepage
path: root/cloudbuild/hugo/Dockerfile
diff options
context:
space:
mode:
authorIan Lewis <ianmlewis@gmail.com>2019-03-29 22:40:11 -0400
committerIan Lewis <ianmlewis@gmail.com>2019-03-29 22:40:11 -0400
commit22f1890a9beab11d8cfdceba3a4d66f8bbbb468c (patch)
tree110ec3a84a72560244ee4476852295b86a737eb0 /cloudbuild/hugo/Dockerfile
Initial commit
Diffstat (limited to 'cloudbuild/hugo/Dockerfile')
-rw-r--r--cloudbuild/hugo/Dockerfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/cloudbuild/hugo/Dockerfile b/cloudbuild/hugo/Dockerfile
new file mode 100644
index 000000000..296cd2904
--- /dev/null
+++ b/cloudbuild/hugo/Dockerfile
@@ -0,0 +1,21 @@
+FROM node:10.15.1-stretch-slim
+
+LABEL MAINTAINER="ianlewis@google.com"
+
+ARG HUGO_VERSION
+ENV HUGO_DOWNLOAD_URL=https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
+
+RUN set -x \
+ && apt-get update \
+ && apt-get install -y \
+ ca-certificates \
+ git \
+ make \
+ && rm -rf /var/lib/apt/lists/*
+
+RUN wget "$HUGO_DOWNLOAD_URL" && \
+ tar xzf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz && \
+ mv hugo /usr/bin/hugo && \
+ rm hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz LICENSE README.md
+
+CMD ["hugo"]