2024-01-02 16:11:26 +00:00
|
|
|
FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340 AS builder-hugo
|
|
|
|
ARG VERSION=0.121.1 # renovate: datasource=github-releases depName=gohugoio/hugo extractVersion=^v(?<version>.*)$
|
2022-10-28 16:47:34 +00:00
|
|
|
|
2024-01-03 17:22:01 +00:00
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
ADD https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_${VERSION}_Linux-64bit.tar.gz /src.tar.gz
|
|
|
|
RUN tar --no-same-owner -xvzf /src.tar.gz && \
|
|
|
|
install -D --mode 0755 /src/hugo /build/usr/bin/hugo
|
2022-10-28 16:47:34 +00:00
|
|
|
|
2024-01-02 16:11:26 +00:00
|
|
|
FROM docker.io/golang:1.21-bookworm@sha256:1415bb0b25d3bffc0a44dcf9851c20a9f8bbe558095221d931f2e4a4cc3596eb AS builder-webhook
|
|
|
|
ARG VERSION=2.8.1 # renovate: datasource=github-releases depName=adnanh/webhook
|
2022-10-28 16:47:34 +00:00
|
|
|
|
2024-01-02 16:11:26 +00:00
|
|
|
RUN GOBIN=/build/usr/bin go install github.com/adnanh/webhook@${VERSION}
|
2022-04-18 17:07:20 +00:00
|
|
|
|
2024-01-02 16:11:26 +00:00
|
|
|
FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340
|
|
|
|
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends \
|
|
|
|
ca-certificates gettext gosu
|
2022-04-18 17:07:20 +00:00
|
|
|
|
2024-01-02 16:11:26 +00:00
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends curl
|
|
|
|
RUN adduser --system --group --uid 10000 --no-create-home hugo
|
2022-04-18 17:07:20 +00:00
|
|
|
|
2024-01-02 16:11:26 +00:00
|
|
|
COPY --from=builder-hugo /build /
|
|
|
|
COPY --from=builder-webhook /build /
|
2022-10-28 16:47:34 +00:00
|
|
|
COPY container/config /etc/hugo
|
2022-04-18 17:07:20 +00:00
|
|
|
COPY container/run-hugo /run-hugo
|
2022-10-28 16:47:34 +00:00
|
|
|
|
2022-04-18 17:07:20 +00:00
|
|
|
ENTRYPOINT ["/run-hugo"]
|