Install git
Needed when setting `enableGitInfo = true` in Hugo configuration. Produce less layers during Docker build
This commit is contained in:
parent
e99e3ab676
commit
adec7af3ea
13
Dockerfile
13
Dockerfile
@ -6,11 +6,12 @@ ARG HUGO_VERSION
|
|||||||
|
|
||||||
COPY ./drone-hugo.sh /bin/
|
COPY ./drone-hugo.sh /bin/
|
||||||
|
|
||||||
RUN apk update
|
RUN apk update && \
|
||||||
RUN chmod +x bin/drone-hugo.sh
|
apk --no-cache add git && \
|
||||||
RUN mkdir /temp/
|
chmod +x bin/drone-hugo.sh && \
|
||||||
RUN wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz | tar xz -C /temp/
|
mkdir /temp/ && \
|
||||||
RUN mv /temp/hugo /bin/hugo
|
wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz | tar xz -C /temp/ && \
|
||||||
RUN rm -rf /temp
|
mv /temp/hugo /bin/hugo && \
|
||||||
|
rm -rf /temp
|
||||||
|
|
||||||
ENTRYPOINT /bin/sh /bin/drone-hugo.sh
|
ENTRYPOINT /bin/sh /bin/drone-hugo.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user