EEED
This commit is contained in:
parent
ea7660ab6f
commit
94146386d0
@ -2,11 +2,11 @@
|
|||||||
FROM golang:1.21-alpine AS builder
|
FROM golang:1.21-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
RUN go mod init whatsapp-sender
|
COPY . .
|
||||||
RUN go mod tidy
|
RUN CGO_ENABLED=0 GOOS=linux go build -o whatsapp-sender .
|
||||||
RUN go build -o whatsapp-sender .
|
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user