Добавить Dockerfile

This commit is contained in:
2026-05-20 22:10:30 +00:00
commit 57752875f2
+14
View File
@@ -0,0 +1,14 @@
FROM golang:1.24 AS builder
WORKDIR /src
RUN apt-get update && apt-get install -y git make ca-certificates && rm -rf /var/lib/apt/lists/*
RUN git clone https://gitea.com/gitea/gitea-mcp.git .
RUN make build
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /src/gitea-mcp /usr/local/bin/gitea-mcp
EXPOSE 8080
ENTRYPOINT ["gitea-mcp"]
CMD ["-t", "sse"]