Renovator Bot
f0038d8d2c
All checks were successful
ci/woodpecker/pr/build-package Pipeline was successful
ci/woodpecker/pr/build-container Pipeline was successful
ci/woodpecker/pr/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/build-container Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
FROM docker.io/alpine:3.20@sha256:b89d9c93e9ed3597455c90a0b88a8bbb5cb7188438f70953fede212a0c4394e0
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
LABEL org.opencontainers.image.title="Hugo static site generator"
|
|
LABEL org.opencontainers.image.url="https://gitea.rknet.org/container/hugo"
|
|
LABEL org.opencontainers.image.source="https://gitea.rknet.org/container/hugo"
|
|
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/container/hugo"
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
ARG TARGETVARIANT
|
|
|
|
ARG HUGO_VERSION
|
|
|
|
# renovate: datasource=github-releases depName=gohugoio/hugo
|
|
ENV HUGO_VERSION="${HUGO_VERSION:-v0.127.0}"
|
|
|
|
ENV HUGO_ENV=production
|
|
|
|
COPY overlay/ /
|
|
|
|
RUN apk add --update --no-cache --virtual .build-deps tar curl && \
|
|
apk add --update --no-cache gcompat libc6-compat libstdc++ busybox-suid bash bash-completion git tzdata make asciidoctor && \
|
|
echo "Installing hugo version '${HUGO_VERSION##v}' ..." && \
|
|
curl -SsfL "https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION##v}_${TARGETOS}-${TARGETARCH}.tar.gz" | \
|
|
tar xz -C /usr/local/bin hugo && \
|
|
chmod 755 /usr/local/bin/hugo && \
|
|
apk del .build-deps && \
|
|
rm -rf /var/cache/apk/* && \
|
|
rm -rf /tmp/* && \
|
|
rm -rf /root/.cache/
|
|
|
|
USER root
|
|
CMD ["help"]
|
|
ENTRYPOINT ["/usr/local/bin/hugo"]
|