whatsapp-blaster / Dockerfile
kodelyx
whatsapp-blaster: stateless fast blast engine
a4e4e4b
Raw
History Blame Contribute Delete
312 Bytes
# Build stage
FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o blaster main.go
# Run stage
FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /app
COPY --from=builder /app/blaster .
EXPOSE 7860
CMD ["./blaster"]