# Build stage FROM golang:1.21-alpine AS builder WORKDIR /app COPY . . RUN go mod init whatsapp-sender RUN go mod tidy RUN go build -o whatsapp-sender . # Runtime stage FROM alpine:latest WORKDIR /app COPY --from=builder /app/whatsapp-sender . COPY --from=builder /app/public ./public EXPOSE 8080 CMD ["./whatsapp-sender"]