Files
hugo/hugo.Dockerfile
T
2026-06-09 21:34:29 +02:00

27 lines
675 B
Docker

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