set CGO_ENABLED to 0

This commit is contained in:
Shizun Ge
2023-06-25 22:58:30 -07:00
parent 585e970906
commit f1d4f43fc7

View File

@@ -3,7 +3,7 @@ FROM golang AS build
RUN mkdir /endlessh
ADD . /endlessh
WORKDIR /endlessh
RUN CGO_ENABLED=1
RUN export CGO_ENABLED=0
RUN go mod tidy
RUN go build -o endlessh .