diff options
author | Ian Lewis <ianmlewis@gmail.com> | 2019-03-29 22:40:11 -0400 |
---|---|---|
committer | Ian Lewis <ianmlewis@gmail.com> | 2019-03-29 22:40:11 -0400 |
commit | 22f1890a9beab11d8cfdceba3a4d66f8bbbb468c (patch) | |
tree | 110ec3a84a72560244ee4476852295b86a737eb0 /cloudbuild |
Initial commit
Diffstat (limited to 'cloudbuild')
-rw-r--r-- | cloudbuild/html-proofer/Dockerfile | 23 | ||||
-rw-r--r-- | cloudbuild/hugo/Dockerfile | 21 |
2 files changed, 44 insertions, 0 deletions
diff --git a/cloudbuild/html-proofer/Dockerfile b/cloudbuild/html-proofer/Dockerfile new file mode 100644 index 000000000..fee64111f --- /dev/null +++ b/cloudbuild/html-proofer/Dockerfile @@ -0,0 +1,23 @@ +FROM ruby:2.4-alpine + +LABEL MAINTAINER="ianlewis@google.com" + +ARG HTMLPROOFER_VERSION + +RUN set -x \ + && apk add --no-cache \ + build-base \ + ca-certificates \ + curl \ + wget \ + libcurl \ + libxml2-dev \ + libxslt-dev \ + openssh + && gem install \ + html-proofer:${HTMLPROOFER_VERSION} \ + nokogiri:1.10.1 \ + --no-document + +CMD ["htmlproofer"] + 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"] |