forgejo-mcp/Containerfile

24 lines
675 B
Docker

FROM quay.io/hummingbird/go:1.26.4-builder@sha256:e6d96a936f7236394e2424f667925e1756b48bc421b0af65c206033efbd78e18 AS build
# Version is injected at build time; the container has no usable .git to derive
# it from (see `make container`). Defaults to "dev" for plain `podman build`.
ARG VERSION=dev
RUN dnf install -y make git && dnf clean all
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux make build VERSION="${VERSION}"
FROM quay.io/hummingbird/core-runtime:2.42@sha256:dcd72eaa2df901c4915e1eec915906c8787c64b9e4149b4211d4500fbbe71791
WORKDIR /app
COPY --from=build /app/forgejo-mcp .
ENTRYPOINT ["/app/forgejo-mcp"]