Moved code to top-level folder, and created dockerfile to containerize the bot.

This commit is contained in:
justin committed 2025-07-06 13:49:27 -07:00
1 parent 0db4546530
commit c257a8df75
2 files changed
+31 -2

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
FROM golang:1.24.1-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /app/bot .
FROM gcr.io/distroless/static-debian11:latest
WORKDIR /app
COPY --from=builder /app/bot .
CMD ["./bot --conf data/.env"]