fix(Dockerfile): base image, hugo install, targetarch
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user