Install Hugo as deb, because it's easier and less hacky
This commit is contained in:
parent
5ed307a11a
commit
b9bfe8d1ec
1 changed files with 5 additions and 7 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,19 +1,17 @@
|
||||||
# Get Hugo
|
|
||||||
FROM jojomi/hugo:0.68.3 as hugo
|
|
||||||
|
|
||||||
RUN chmod 0777 /usr/local/sbin/hugo
|
|
||||||
|
|
||||||
# Site Build
|
# Site Build
|
||||||
FROM node:lts-slim as build
|
FROM node:lts-slim as build
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
|
ENV HUGO_VERSION=0.68.3
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=hugo /usr/local/sbin/hugo /usr/local/bin/hugo
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y ca-certificates
|
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
|
COPY . /app
|
||||||
|
|
||||||
RUN npm ci --production
|
RUN npm ci --production
|
||||||
|
|
Loading…
Reference in a new issue