mirror of
https://github.com/pischule/go-mention-all-bot.git
synced 2025-12-19 06:56:43 +00:00
11 lines
224 B
Docker
11 lines
224 B
Docker
FROM golang:1.18-alpine as builder
|
|
RUN apk add --no-cache gcc musl-dev
|
|
WORKDIR /build
|
|
COPY . .
|
|
RUN go build -a -o bot
|
|
|
|
FROM alpine:3.16
|
|
COPY --from=builder /build/bot /app/bot
|
|
WORKDIR /app
|
|
RUN mkdir data
|
|
ENTRYPOINT ["./bot"] |