Skip to content

Commit

Permalink
ci: fix Dockerfile build
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Mar 30, 2024
1 parent c62d6be commit 1971f58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1971f58

Please sign in to comment.