Обновить Dockerfile
This commit is contained in:
+5
-3
@@ -1,13 +1,15 @@
|
||||
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 apt-get update && apt-get install -y git ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||
RUN git clone https://gitea.com/gitea/gitea-mcp.git .
|
||||
RUN make build
|
||||
|
||||
RUN go mod download
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -ldflags="-s -w" -o /out/gitea-mcp .
|
||||
|
||||
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
|
||||
COPY --from=builder /out/gitea-mcp /usr/local/bin/gitea-mcp
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["gitea-mcp"]
|
||||
|
||||
Reference in New Issue
Block a user