Files
tgex-backend/tg_bot/Dockerfile
T
root a33fa24e99
Build & Push / build (push) Canceled after 0s
Initial commit
2026-08-05 19:31:35 +03:00

20 lines
356 B
Docker

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
COPY shared/echotron /app/shared/echotron
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"]