1
Fork 0

Install Hugo as deb, because it's easier and less hacky

This commit is contained in:
Jake Howard 2020-04-09 22:23:27 +01:00
parent 5ed307a11a
commit b9bfe8d1ec
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

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