1
Fork 0

Move hugo download lower so more of the container can be cached during reruns

This commit is contained in:
Jake Howard 2020-04-11 23:45:38 +01:00
parent 25ef616910
commit bef14d0367
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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