mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
f710c4846f
Calls to `curl` will now use the `--fail` option, in addition to `--silent` and `--show-error`, in an effort to catch issues with server or client-side errors.
25 lines
996 B
Docker
25 lines
996 B
Docker
FROM docker.io/golang:1.21-bookworm@sha256:1415bb0b25d3bffc0a44dcf9851c20a9f8bbe558095221d931f2e4a4cc3596eb AS builder
|
|
|
|
WORKDIR /build
|
|
ENV GOBIN=/build/bin
|
|
|
|
RUN go install github.com/adnanh/webhook@latest
|
|
|
|
FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340
|
|
ARG VERSION=0.121.1 # renovate: datasource=github-releases depName=gohugoio/hugo extractVersion=^v(?<version>.*)$
|
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
|
ca-certificates curl git gettext gosu openssh-client
|
|
|
|
RUN curl -fsSL 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"]
|