ci: fix Dockerfile InDocker flag

This commit is contained in:
liwei committed 2024-03-30 11:00:14 +08:00
1 parent 1971f582b5
commit 0a9e39ed75
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ 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" \
-ldflags="-s -w -X github.com/GopeedLab/gopeed/pkg/base.Version=$VERSION -X github.com/GopeedLab/gopeed/pkg/base.InDocker=true" \
-o dist/gopeed github.com/GopeedLab/gopeed/cmd/web
FROM alpine:3.14.2