From bef14d0367f685e1738faaef4603ff8f0dfac832 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 11 Apr 2020 23:45:38 +0100 Subject: [PATCH] Move hugo download lower so more of the container can be cached during reruns --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5c59e1e..c3302ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,13 +9,13 @@ WORKDIR /app RUN apt-get update && apt-get install -y ca-certificates -ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb /tmp/hugo.deb -RUN dpkg -i /tmp/hugo.deb - COPY . /app RUN npm ci --production +ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb /tmp/hugo.deb +RUN dpkg -i /tmp/hugo.deb + RUN ./scripts/release.sh # Production run