From a541e23274db460297d4279e134cd45124708011 Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Tue, 9 Jun 2026 21:34:29 +0200 Subject: [PATCH] feat: add hugo.Dockerfile --- hugo.Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 hugo.Dockerfile diff --git a/hugo.Dockerfile b/hugo.Dockerfile new file mode 100644 index 0000000..6834f6d --- /dev/null +++ b/hugo.Dockerfile @@ -0,0 +1,26 @@ +FROM node:20-bullseye-slim + +ARG HUGO_VERSION=0.146.4 + +# Outils système +RUN apt-get update -qq && \ + apt-get install -y -qq --no-install-recommends \ + git \ + ca-certificates \ + lftp \ + openssh-client \ + wget \ + && \ + apt-get install -y -qq -t bullseye-backports \ + golang-go \ + && \ + rm -rf /var/lib/apt/lists/* + +# Hugo extended +RUN wget -q -O /tmp/hugo.deb \ + "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-arm64.deb" && \ + dpkg -i /tmp/hugo.deb && \ + rm /tmp/hugo.tar.gz + +# Yarn via Corepack +RUN corepack enable && corepack prepare yarn@stable --activate