chore: pin Hugo version to 0.147.0 and simplify dependency installation
This commit is contained in:
parent
15a31da072
commit
1984289b52
10
Dockerfile
10
Dockerfile
@ -2,13 +2,11 @@
|
||||
FROM alpine:3.19 AS builder
|
||||
|
||||
# Install dependencies
|
||||
RUN apk add --no-cache wget tar jq curl
|
||||
RUN apk add --no-cache wget tar
|
||||
|
||||
# Install latest Hugo extended version (with improved extraction)
|
||||
RUN LATEST_RELEASE=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name') && \
|
||||
VERSION=${LATEST_RELEASE#v} && \
|
||||
echo "Installing latest Hugo version: $VERSION" && \
|
||||
wget -q https://github.com/gohugoio/hugo/releases/download/${LATEST_RELEASE}/hugo_extended_${VERSION}_linux-amd64.tar.gz -O hugo.tar.gz && \
|
||||
# Install Hugo extended version 0.147.0 (latest stable version)
|
||||
RUN HUGO_VERSION=0.147.0 && \
|
||||
wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz -O hugo.tar.gz && \
|
||||
mkdir -p /tmp/hugo && \
|
||||
tar -xzf hugo.tar.gz -C /tmp/hugo && \
|
||||
mv /tmp/hugo/hugo /usr/local/bin/ && \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user