save first version
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
FROM golang:1.22-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o ticketbot ./cmd/bot
|
||||
|
||||
FROM alpine:3.19
|
||||
RUN apk add --no-cache ca-certificates tzdata
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/ticketbot .
|
||||
RUN mkdir -p data transcripts
|
||||
VOLUME ["/app/data", "/app/transcripts"]
|
||||
ENTRYPOINT ["./ticketbot"]
|
||||
Reference in New Issue
Block a user