фиксы запуска

This commit is contained in:
Artem Tsyrulnikov
2026-01-06 12:38:49 +03:00
parent 592ade7dce
commit 52e65dff05
4 changed files with 57 additions and 16 deletions

17
telegram_bot/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM golang:1.25-alpine AS build
WORKDIR /app
# Modules layer
COPY go.mod go.sum ./
RUN go mod download
# Build layer
COPY . .
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"]