From f1d4f43fc7090d8b8da9b3d8f43b1d23233da3d9 Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Sun, 25 Jun 2023 22:58:30 -0700 Subject: [PATCH] set CGO_ENABLED to 0 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2f9cd7e..34d3b9b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 .