Cleanup Dockerfiles
This commit is contained in:
parent
4b279bab07
commit
f046c41eb1
10
Dockerfile
10
Dockerfile
@ -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"]
|
||||
|
@ -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"]
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user