feat: Scaffolding bot
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
FROM golang:1.24-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -o /bot ./cmd/bot
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /root/
|
||||
COPY --from=builder /bot /bot
|
||||
COPY config.yaml .
|
||||
|
||||
ENTRYPOINT ["/bot"]
|
||||
Reference in New Issue
Block a user