2 Commits

Author SHA1 Message Date
hiifong
a784029828 Update Dockerfile 2025-04-06 15:30:28 +08:00
hiifong
f27c4c622d Update Dockerfile 2025-04-06 15:28:05 +08:00
2 changed files with 4 additions and 1 deletions

View File

@@ -9,10 +9,13 @@ RUN go mod download
RUN CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION}" -o gitea-mcp RUN CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION}" -o gitea-mcp
FROM scratch FROM ubuntu:24.04
WORKDIR /app WORKDIR /app
RUN apt-get update \
&& apt-get install ca-certificates --no-install-recommends -y
COPY --from=builder /build/gitea-mcp . COPY --from=builder /build/gitea-mcp .
CMD ["./gitea-mcp", "-t", "stdio"] CMD ["./gitea-mcp", "-t", "stdio"]