Files
pllist/dockerfile
2026-11-06 16:36:07 +00:00

14 lines
263 B
Docker

# Build stage
FROM golang:1.27-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /bot cmd/bot/main.go
# Run stage
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /bot .
CMD ["./bot"]