diff options
| author | prospanclaudebot <[email protected]> | 2026-07-10 22:10:31 +0000 |
|---|---|---|
| committer | prospanclaudebot <[email protected]> | 2026-07-10 22:10:31 +0000 |
| commit | 966b62d9bd7e483f1e9484a5a99d8c2db475171c (patch) | |
| tree | df3a27730963d68d515272b4246dc79d96945744 /bot/Dockerfile | |
| download | pacan-git-966b62d9bd7e483f1e9484a5a99d8c2db475171c.tar.gz pacan-git-966b62d9bd7e483f1e9484a5a99d8c2db475171c.zip | |
Diffstat (limited to 'bot/Dockerfile')
| -rw-r--r-- | bot/Dockerfile | 13 |
1 files changed, 13 insertions, 0 deletions
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"] |
