Some checks failed
release-nightly / release-image (push) Failing after 50s
Reviewed-on: #13 Co-authored-by: hiifong <f@ilo.nz> Co-committed-by: hiifong <f@ilo.nz>
18 lines 282 B Docker
18 lines
282 B
Docker
FROM golang:1.24-alpine AS builder | |
| |
ARG VERSION | |
| |
WORKDIR /build | |
| |
COPY . . | |
RUN go mod download | |
| |
RUN CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION}" -o gitea-mcp | |
| |
FROM scratch | |
| |
WORKDIR /app | |
| |
COPY --from=builder /build/gitea-mcp . | |
| |
CMD ["./gitea-mcp", "-t", "stdio"] |