From 966b62d9bd7e483f1e9484a5a99d8c2db475171c Mon Sep 17 00:00:00 2001 From: prospanclaudebot Date: Fri, 10 Jul 2026 22:10:31 +0000 Subject: initial import: pacan-git --- bot/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bot/Dockerfile (limited to 'bot/Dockerfile') diff --git a/bot/Dockerfile b/bot/Dockerfile new file mode 100644 index 0000000..fb89d33 --- /dev/null +++ b/bot/Dockerfile @@ -0,0 +1,13 @@ +# сборка Go-бота в статик-бинарь +FROM golang:1.22-alpine AS build +WORKDIR /src +COPY go.mod . +COPY main.go . +RUN CGO_ENABLED=0 go build -o /gitbot -ldflags="-s -w" . + +FROM alpine:3.20 +RUN apk add --no-cache git ca-certificates tzdata +COPY --from=build /gitbot /usr/local/bin/gitbot +ENV REPOS_DIR=/repos +VOLUME /repos +ENTRYPOINT ["/usr/local/bin/gitbot"] -- cgit v1.2.3