2
0
forked from drew/smtprelay

disable CGO in GO build

- We want a statically linked standalone binary.
This commit is contained in:
2025-11-26 14:41:59 -07:00
parent bc4a31817e
commit 796b54a565

View File

@@ -8,7 +8,7 @@ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY . . COPY . .
RUN go build -buildvcs=false -o /smtprelay RUN CGO_ENABLED=0 go build -buildvcs=false -o /smtprelay
# Stage 2: Package # Stage 2: Package
FROM scratch FROM scratch