forked from drew/smtprelay
disable CGO in GO build
- We want a statically linked standalone binary.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user