Moved code to top-level folder, and created dockerfile to containerize the bot.
This commit is contained in:
1 parent
0db4546530
commit
c257a8df75
2 files changed
+31
-2
No files matched your search
+18
@@ -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"]
|
||||
Reference in new issue
Block a user