coreos-home-server/service/hugo/Containerfile
Alex Palaistras 952df3d324 Update service versions with Renovate
This adds basic configuration for Renovate, and sets up most services
for automated updates to package versions.
2023-12-20 23:00:19 +00:00

26 lines
824 B
Docker

FROM docker.io/golang:1.21-bookworm AS builder
WORKDIR /build
ENV GOBIN=/build/bin
RUN go install github.com/adnanh/webhook@latest
FROM docker.io/debian:bookworm-slim
# renovate: datasource=github-releases depName=gohugoio/hugo
ARG VERSION=0.119.0
RUN apt-get update -y && apt-get install -y --no-install-recommends \
ca-certificates curl git gettext gosu openssh-client
RUN curl -L https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_${VERSION}_Linux-64bit.tar.gz | \
tar -C /bin --no-same-owner -xvzf - hugo && chmod +x /bin/hugo
RUN addgroup --system --gid 10000 hugo
RUN adduser --system --uid 10000 --ingroup hugo --no-create-home hugo
COPY --from=builder /build/bin/webhook /bin/webhook
COPY container/config /etc/hugo
COPY container/run-hugo /run-hugo
ENTRYPOINT ["/run-hugo"]