From a7a5bee8b80f073f907db5a83f1a7105380399db Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Tue, 9 Jun 2026 22:15:21 +0200 Subject: [PATCH] fix(Dockerfile): base image, hugo install, targetarch --- hugo.Dockerfile => Dockerfile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) rename hugo.Dockerfile => Dockerfile (63%) diff --git a/hugo.Dockerfile b/Dockerfile similarity index 63% rename from hugo.Dockerfile rename to Dockerfile index 6834f6d..2dc7cd5 100644 --- a/hugo.Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM node:20-bullseye-slim +FROM node:24-bookworm-slim ARG HUGO_VERSION=0.146.4 +ARG TARGETARCH=arm64 -# Outils système RUN apt-get update -qq && \ apt-get install -y -qq --no-install-recommends \ git \ @@ -11,16 +11,11 @@ RUN apt-get update -qq && \ 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" && \ + "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.deb" && \ dpkg -i /tmp/hugo.deb && \ - rm /tmp/hugo.tar.gz + rm /tmp/hugo.deb -# Yarn via Corepack RUN corepack enable && corepack prepare yarn@stable --activate