From 1971f582b5a20b421a2b45776178fed6a338045a Mon Sep 17 00:00:00 2001 From: liwei Date: Sat, 30 Mar 2024 10:50:53 +0800 Subject: [PATCH] ci: fix Dockerfile build --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d899c10a..1af5ea05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,8 @@ RUN go mod download COPY . . COPY --from=flutter /app/build/web ./cmd/web/dist ARG VERSION=dev -RUN CGO_ENABLED=0 go build -tags nosqlite,web -ldflags="-s -w" \ - -X github.com/GopeedLab/gopeed/pkg/base.Version=$VERSION \ - -X github.com/GopeedLab/gopeed/pkg/base.InDocker=$IN_DOCKER \ +RUN CGO_ENABLED=0 go build -tags nosqlite,web \ + -ldflags="-s -w -X github.com/GopeedLab/gopeed/pkg/base.Version=$VERSION -X github.com/GopeedLab/gopeed/pkg/base.InDocker=$IN_DOCKER" \ -o dist/gopeed github.com/GopeedLab/gopeed/cmd/web FROM alpine:3.14.2