update dockerfile
All checks were successful
Build and Publish Docker Image / build (push) Successful in 17s

This commit is contained in:
2026-05-13 23:06:16 +00:00
parent 0620ec6abe
commit 4dd2c1dd4b

View File

@@ -1,8 +1,20 @@
# Stage 1 # Stage 1
FROM alpine:latest AS build FROM alpine:latest AS base
FROM base AS hugo
# Install the Hugo go app. # Install the Hugo go app.
RUN apk add --update hugo git RUN apk add --update curl
ARG TARGETARCH
ARG HUGO_VERSION=0.161.1
RUN wget -O "hugo.tar.gz" "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz"
RUN tar -xf "hugo.tar.gz" hugo -C /usr/bin
FROM base AS build
COPY --from=hugo /usr/bin/hugo /bin/hugo
RUN apk add --update git libc6-compat libstdc++
WORKDIR /opt/HugoApp WORKDIR /opt/HugoApp