whatapp-go/Dockerfile

17 lines
277 B
Docker
Raw Normal View History

2025-05-06 16:16:42 +00:00
FROM golang:1.20-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o sender main.go
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /app/sender .
COPY public ./public
EXPOSE 3000
CMD ["./sender"]