This commit is contained in:
Artem Tsyrulnikov
2026-01-18 13:59:47 +03:00
parent d8202e1141
commit 62e8f98429
62 changed files with 156 additions and 190 deletions

18
tg_bot/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM golang:1.25-alpine AS build
WORKDIR /app/tg_bot
# Modules layer
COPY tg_bot/go.mod tg_bot/go.sum ./
COPY pkg /app/pkg
RUN go mod download
# Build layer
COPY tg_bot /app/tg_bot
RUN CGO_ENABLED=0 GOOS=linux go build -o /tg_bot .
FROM alpine:latest AS run
COPY --from=build /tg_bot /tg_bot
CMD ["/tg_bot"]