Add CGO_ENABLED=1 to Dockerfile

This commit is contained in:
Shizun Ge 2023-06-25 22:55:09 -07:00
parent 88d068a452
commit 585e970906

View file

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