This commit is contained in:
cangui 2025-05-06 18:50:12 +02:00
parent ea7660ab6f
commit 94146386d0

View File

@ -2,11 +2,11 @@
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY . .
COPY go.mod go.sum ./
RUN go mod download
RUN go mod init whatsapp-sender
RUN go mod tidy
RUN go build -o whatsapp-sender .
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o whatsapp-sender .
# Runtime stage
FROM alpine:latest