Skip to main content
Glama
golang.Dockerfile643 B
############################ # STEP 1 build executable binary ############################ FROM golang:1.24-alpine3.20 AS builder RUN apk update && apk add --no-cache gcc musl-dev gcompat WORKDIR /whatsapp COPY ./src . # Fetch dependencies. RUN go mod download # Build the binary with optimizations RUN go build -a -ldflags="-w -s" -o /app/whatsapp ############################# ## STEP 2 build a smaller image ############################# FROM alpine:3.20 RUN apk add --no-cache ffmpeg WORKDIR /app # Copy compiled from builder. COPY --from=builder /app/whatsapp /app/whatsapp # Run the binary. ENTRYPOINT ["/app/whatsapp"] CMD [ "rest" ]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/samihalawa/whatsapp-go-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server