From 262272150e1bb8bef0de3417eb244f9c6702a461 Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Wed, 17 Jul 2024 21:58:01 +0300 Subject: [PATCH] fix vendor --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 899835e8..50a76828 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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