dockerize application

This commit is contained in:
2026-02-01 17:33:04 +03:00
parent e17ac03f6f
commit 0bb11c3bd7
4 changed files with 47 additions and 2 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM golang:latest AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /grok-bot
FROM alpine:latest
COPY --from=builder /grok-bot /grok-bot
CMD ["/grok-bot"]