drone-hugo/Dockerfile
Martin Westergaard Lassen adec7af3ea
Install git
Needed when setting `enableGitInfo = true` in Hugo configuration.
Produce less layers during Docker build
2018-06-06 09:18:45 +02:00

17 lines
468 B
Docker

FROM alpine:latest
LABEL maintainer="chris@cbrgm.de"
LABEL version="latest"
ARG HUGO_VERSION
COPY ./drone-hugo.sh /bin/
RUN apk update && \
apk --no-cache add git && \
chmod +x bin/drone-hugo.sh && \
mkdir /temp/ && \
wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz | tar xz -C /temp/ && \
mv /temp/hugo /bin/hugo && \
rm -rf /temp
ENTRYPOINT /bin/sh /bin/drone-hugo.sh