From c31faf4cf37a76ebeb2ab71b99c7ce7902e9c7f4 Mon Sep 17 00:00:00 2001 From: Guillaume Berche Date: Sat, 19 Oct 2024 15:17:53 +0200 Subject: [PATCH] Add ENV CGO_ENABLE=0 and alpine --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 60582c7..8d5ee9b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,10 @@ WORKDIR /app COPY go.mod Makefile ./ COPY ./cmd ./cmd - +#See https://www.reddit.com/r/golang/comments/15o9trk/binsh_manager_not_found/ +#See https://www.reddit.com/r/golang/comments/pi97sp/what_is_the_consequence_of_using_cgo_enabled0/ +ENV CGO_ENABLE=0 RUN make build -RUN /app/build/main -h || echo ignore error during build container # ---