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
|
FROM alpine:3.19 AS builder
|
||||||
|
|
||||||
# Install dependencies
|
# 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)
|
# Install Hugo extended version 0.147.0 (latest stable version)
|
||||||
RUN LATEST_RELEASE=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.tag_name') && \
|
RUN HUGO_VERSION=0.147.0 && \
|
||||||
VERSION=${LATEST_RELEASE#v} && \
|
wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz -O hugo.tar.gz && \
|
||||||
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 && \
|
|
||||||
mkdir -p /tmp/hugo && \
|
mkdir -p /tmp/hugo && \
|
||||||
tar -xzf hugo.tar.gz -C /tmp/hugo && \
|
tar -xzf hugo.tar.gz -C /tmp/hugo && \
|
||||||
mv /tmp/hugo/hugo /usr/local/bin/ && \
|
mv /tmp/hugo/hugo /usr/local/bin/ && \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user