ci: fix Dockerfile build args

This commit is contained in:
liwei committed 2024-03-30 10:39:46 +08:00
1 parent 7d5e503894
commit c62d6be3da
1 file changed
+2 -2
+2 -2
View File
@@ -13,8 +13,8 @@ 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} \
-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