From b362647ef3ba01b60a61041d0f6ca67b6f9000d7 Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Sun, 25 Jun 2023 23:32:15 -0700 Subject: [PATCH] fix CGO_ENABLE again --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34d3b9b..2bba7bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,8 @@ FROM golang AS build RUN mkdir /endlessh ADD . /endlessh WORKDIR /endlessh -RUN export CGO_ENABLED=0 RUN go mod tidy -RUN go build -o endlessh . +RUN CGO_ENABLED=0 go build -o endlessh . FROM gcr.io/distroless/base