feat: add hugo.Dockerfile
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user