EEED
This commit is contained in:
parent
ea7660ab6f
commit
94146386d0
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user