Files
todemon/Dockerfile
2025-07-30 18:32:35 +02:00

12 lines
264 B
Docker

FROM golang:1.24.4 AS builder
WORKDIR /app
COPY . .
RUN go mod tidy && go build -o bot main.go
FROM debian:bookworm-slim
WORKDIR /app
RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates
COPY --from=builder /app/bot .
CMD ["./bot"]