Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8acdb80
commit 91b91c6
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 . |