Proposals (at most 3 waiting) for pages on page one without clicks and for the audit's title and description issues: the AI writes the title (without the site's suffix, within the pixel budget) and description from the live page and its searches. A yes syncs a working copy of the site's Gitea repository (token as a header only), finds the page's Hugo content file, sets title and description in its front matter, builds with Hugo to check the page comes out as proposed, pushes a branch and opens a pull request; it never merges. Merged changes are checked on the live site, then compared before and after from Search Console. Hugo is in the image. Schema 15. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
896 B
Docker
24 lines
896 B
Docker
# Supermarket's web app. Built locally by install.sh / update.sh through
|
|
# compose.yaml; nothing is pulled from a registry but the base images.
|
|
|
|
FROM golang:1.26-alpine AS build
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
ARG VERSION=dev
|
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X 'main.version=${VERSION}'" \
|
|
-o /out/supermarket ./cmd/supermarket
|
|
|
|
FROM alpine:3.22
|
|
# git and hugo: for the SEO and Sites modules, which change Hugo repositories
|
|
# and build them to check a change.
|
|
RUN apk add --no-cache ca-certificates tzdata git hugo
|
|
COPY --from=build /out/supermarket /usr/local/bin/supermarket
|
|
LABEL org.opencontainers.image.title="supermarket"
|
|
ENV SUPERMARKET_DATA=/data
|
|
EXPOSE 8080
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s \
|
|
CMD wget -q -O /dev/null http://127.0.0.1:8080/healthz || exit 1
|
|
ENTRYPOINT ["/usr/local/bin/supermarket"]
|