commit
7061cf1f1d
13
Dockerfile
13
Dockerfile
@ -6,11 +6,12 @@ ARG HUGO_VERSION
|
||||
|
||||
COPY ./drone-hugo.sh /bin/
|
||||
|
||||
RUN apk update
|
||||
RUN chmod +x bin/drone-hugo.sh
|
||||
RUN mkdir /temp/
|
||||
RUN wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz | tar xz -C /temp/
|
||||
RUN mv /temp/hugo /bin/hugo
|
||||
RUN rm -rf /temp
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user