fix(Dockerfile): base image, hugo install, targetarch
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
FROM node:24-bookworm-slim
|
||||
|
||||
ARG HUGO_VERSION=0.146.4
|
||||
ARG TARGETARCH=arm64
|
||||
|
||||
RUN apt-get update -qq && \
|
||||
apt-get install -y -qq --no-install-recommends \
|
||||
git \
|
||||
ca-certificates \
|
||||
lftp \
|
||||
openssh-client \
|
||||
wget \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN wget -q -O /tmp/hugo.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.deb
|
||||
|
||||
RUN corepack enable && corepack prepare yarn@stable --activate
|
||||
Reference in New Issue
Block a user