From 3f5182bd598011d487c4c16926ec85828596f0cf Mon Sep 17 00:00:00 2001 From: ubuntu-vm <1174865138@qq.com> Date: Mon, 8 Jan 2024 22:30:43 +0800 Subject: [PATCH] fix --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 69b8d7e..0b51b71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,10 +9,9 @@ COPY go.mod go.sum ./ RUN apk add build-base && \ go mod download COPY . . -RUN CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH go build -ldflags="-s -w" -o server . && \ +RUN CGO_ENABLED=1 GOOS=linux GOARCH=$TARGETARCH go build -ldflags="-s -w" -installsuffix cgo -o server . && \ mv config/.env.example config/clash.ini server /app/static - ##打包镜像 FROM --platform=$TARGETPLATFORM alpine LABEL org.opencontainers.image.vendor="忐忑"