added suggestion command
This commit is contained in:
+9
-2
@@ -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"]
|
||||
Reference in New Issue
Block a user