added suggestion command

This commit is contained in:
2025-04-08 15:21:23 -04:00
parent 34a9c5b65b
commit f78e33eca2
10 changed files with 234 additions and 51 deletions
+9 -2
View File
@@ -1,16 +1,23 @@
FROM golang:1.24-alpine AS builder
WORKDIR /app
# for C stuff (CGO_ENABLED --> sqlite3)
RUN apk add --no-cache build-base
# Copy go.mod and go.sum to download dependencies
COPY go.mod go.sum ./
RUN go mod download
# Copy the rest of the code and build the bot binary
# Copy the rest of the code
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o bot .
RUN CGO_ENABLED=1 GOOS=linux go build -o bot .
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/bot .
# DB stuff
VOLUME /app/data
RUN mkdir -p /app/data && chmod 755 /app/data
CMD ["./bot"]