From 179ab1d4af2b3d4e051a027bb6e826559cd17ef4 Mon Sep 17 00:00:00 2001 From: ubuntu-vm <1174865138@qq.com> Date: Mon, 8 Jan 2024 23:11:33 +0800 Subject: [PATCH] fix --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1ff543b..c3ab968 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ENV CGO_ENABLED=1 # ENV GOPROXY="https://goproxy.cn,direct" COPY go.mod go.sum ./ #安装编译需要的环境gcc等, 同时CGO_ENABLED=1 -RUN apk add --no-cache --virtual .build-deps ca-certificates gcc g++ && \ +RUN apk add --no-cache gcc musl-dev && \ go mod download COPY . . RUN CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH go build -ldflags="-s -w" -installsuffix cgo -o server . && \