whatapp-go/Dockerfile
2025-05-06 18:42:56 +02:00

20 lines
328 B
Docker

# 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 3002
CMD ["./whatsapp-sender"]