FROM alpine
ENV HUGO_VERSION="0.52"
RUN apk add --update
wget
git
ca-certificates
RUN wget --quiet https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz &&
tar -xf hugo_${HUGO_VERSION}Linux-64bit.tar.gz &&
chmod +x hugo &&
mv hugo /usr/local/bin/hugo &&
rm -rf hugo hugo${HUGO_VERSION}_Linux-64bit.tar.gz &&
hugo new site hugo-app/ &&
cd hugo-app/themes &&
git clone https://github.com/thingsym/hugo-theme-techdoc.git
ADD config.toml /hugo-app/
RUN sed -i -e 's|baseURL =.|baseURL = "/"|g' /hugo-app/config.toml &&
sed -i -e 's|theme =.|theme = "hugo-theme-techdoc"|g' /hugo-app/config.toml
Content type
Image
Digest
Size
20 MB
Last updated
over 7 years ago
docker pull koksay/hugo:0.52