Commit 02457c16 authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: make hugo install easier

parent 07edaed2
Loading
Loading
Loading
Loading
Loading
+4 −24
Original line number Diff line number Diff line
# renovate: datasource=github-releases depName=gohugoio/hugo versioning=pep440
ARG HUGO_VERSION=0.148.2
# alpine base
FROM alpine:3.22

# debian base
FROM docker.io/debian:12
ENV DEBIAN_FRONTEND=noninteractive

# prepare basic stuff
RUN set -e && ln -sf bash /bin/sh
RUN set -e \
      && apt -y update \
      && apt -y upgrade \
      && apt -y install --no-install-recommends --no-install-suggests ca-certificates git wget \
      && apt -y autoremove \
      && apt clean \
      && rm -rf /var/lib/apt/lists/*

# arguments
ARG HUGO_VERSION

# install hugo
RUN set -e \
      && wget -q -O /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
      && apt -y install /tmp/hugo.deb \
      && rm -f /tmp/hugo.deb
# update and install hugo
RUN apk add --no-cache hugo && rm -rf /var/cache/apk/*