Skip to content

Commit

Permalink
Add Hugo v0.46. (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
felicianotech committed Aug 1, 2018
1 parent 8acdb80 commit 91b91c6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
38 changes: 38 additions & 0 deletions 0.46/Dockerfile
@@ -0,0 +1,38 @@
FROM ruby:2.4-alpine

LABEL maintainer="ricardo@feliciano.tech"

ENV HUGO_VERSION=0.46
ENV HUGO_DOWNLOAD_URL=https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz

RUN apk add --update --no-cache --virtual build-dependencies

RUN apk add --update --no-cache \
bash \
build-base \
ca-certificates \
curl \
git \
libcurl \
# Needed for Hugo Extended which uses CGO
libc6-compat \
libxml2-dev \
libxslt-dev \
openssh \
rsync \
wget && \
gem install \
html-proofer \
nokogiri \
--no-document && \
apk del build-dependencies && \
rm /var/cache/apk/*

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 ["htmlproofer","--help"]

EXPOSE 1313
4 changes: 2 additions & 2 deletions build-images.sh
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

docker build --file 0.45/Dockerfile -t cibuilds/hugo:latest -t cibuilds/hugo:0.45.1 -t cibuilds/hugo:0.45 .
docker build --file 0.45/Dockerfile -t felicianotech/docker-hugo:latest -t felicianotech/docker-hugo:0.45.1 -t felicianotech/docker-hugo:0.45 .
docker build --file 0.46/Dockerfile -t cibuilds/hugo:latest -t cibuilds/hugo:0.46 .
docker build --file 0.46/Dockerfile -t felicianotech/docker-hugo:latest -t felicianotech/docker-hugo:0.46 .

0 comments on commit 91b91c6

Please sign in to comment.