From b9bfe8d1eceb64d50b66f3521949e0dd303aeb05 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 9 Apr 2020 22:23:27 +0100 Subject: [PATCH] Install Hugo as deb, because it's easier and less hacky --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 379ceaf..916a25a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,17 @@ -# Get Hugo -FROM jojomi/hugo:0.68.3 as hugo - -RUN chmod 0777 /usr/local/sbin/hugo - # Site Build FROM node:lts-slim as build ENV NODE_ENV production +ENV HUGO_VERSION=0.68.3 + WORKDIR /app -COPY --from=hugo /usr/local/sbin/hugo /usr/local/bin/hugo - 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