Cleanup Dockerfiles

This commit is contained in:
cbrgm 2018-08-08 16:01:20 +02:00
parent 4b279bab07
commit f046c41eb1
3 changed files with 9 additions and 21 deletions

View File

@ -10,13 +10,9 @@ ARG HUGO_ARCH
ENV PLUGIN_HUGO_ARCH=$HUGO_ARCH
ENV PLUGIN_HUGO_SHIPPED_VERSION=$HUGO_VERSION
RUN apk --no-cache add git && \
wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz | tar xz -C /bin
ADD release/linux/amd64/drone-hugo /bin/
RUN apk update && \
apk --no-cache add git && \
chmod +x bin/drone-hugo && \
mkdir /temp/ && \
wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz | tar xz -C /temp/ && \
mv /temp/hugo /bin/hugo && \
rm -rf /temp
ENTRYPOINT ["/bin/drone-hugo"]

View File

@ -10,13 +10,9 @@ ARG HUGO_ARCH
ENV PLUGIN_HUGO_ARCH=$HUGO_ARCH
ENV PLUGIN_HUGO_SHIPPED_VERSION=$HUGO_VERSION
RUN apk --no-cache add git && \
wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz | tar xz -C /bin
ADD release/linux/arm/drone-hugo /bin/
RUN apk update && \
apk --no-cache add git && \
chmod +x bin/drone-hugo && \
mkdir /temp/ && \
wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz | tar xz -C /temp/ && \
mv /temp/hugo /bin/hugo && \
rm -rf /temp
ENTRYPOINT ["/bin/drone-hugo"]

View File

@ -10,13 +10,9 @@ ARG HUGO_ARCH
ENV PLUGIN_HUGO_ARCH=$HUGO_ARCH
ENV PLUGIN_HUGO_SHIPPED_VERSION=$HUGO_VERSION
RUN apk --no-cache add git && \
wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz | tar xz -C /bin
ADD release/linux/arm64/drone-hugo /bin/
RUN apk update && \
apk --no-cache add git && \
chmod +x bin/drone-hugo && \
mkdir /temp/ && \
wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz | tar xz -C /temp/ && \
mv /temp/hugo /bin/hugo && \
rm -rf /temp
ENTRYPOINT ["/bin/drone-hugo"]