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