Skip to content

Commit

Permalink
fix vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jul 17, 2024
1 parent c08c909 commit 2622721
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,9 @@ RUN go install -v -ldflags "-s -w" google.golang.org/protobuf/cmd/protoc-gen-go@

COPY . /src

WORKDIR /src

RUN go work vendor

WORKDIR /src/protoc-gen-gripmock

RUN go install -v -ldflags "-s -w"
RUN go work vendor && go install -v -ldflags "-s -w"

FROM golang:1.22-alpine3.20

Expand All @@ -55,7 +51,7 @@ COPY --from=builder /src /go/src/github.com/bavix/gripmock

WORKDIR /go/src/github.com/bavix/gripmock

RUN go install -v -ldflags "-X 'github.com/bavix/gripmock/cmd.version=${version:-dev}' -s -w"
RUN go work vendor && go install -v -ldflags "-X 'github.com/bavix/gripmock/cmd.version=${version:-dev}' -s -w"

EXPOSE 4770 4771

Expand Down

0 comments on commit 2622721

Please sign in to comment.