Skip to content

Commit

Permalink
Merge pull request #354 from bavix/builder-update
Browse files Browse the repository at this point in the history
builder update
  • Loading branch information
rez1dent3 authored Jul 18, 2024
2 parents 2a14166 + f16664e commit 18914bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ WORKDIR /src/protoc-gen-gripmock

RUN go install -v -ldflags "-s -w"

WORKDIR /src

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

FROM golang:1.22-alpine3.20

LABEL org.opencontainers.image.source=https://github.com/bavix/gripmock
Expand All @@ -46,12 +50,13 @@ COPY --from=protoc-builder /usr/include/googleapis /googleapis
COPY --from=builder $GOPATH/bin/protoc-gen-go $GOPATH/bin/protoc-gen-go
COPY --from=builder $GOPATH/bin/protoc-gen-go-grpc $GOPATH/bin/protoc-gen-go-grpc
COPY --from=builder $GOPATH/bin/protoc-gen-gripmock $GOPATH/bin/protoc-gen-gripmock
COPY --from=builder $GOPATH/bin/gripmock $GOPATH/bin/gripmock

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 build -o /dev/null .

EXPOSE 4770 4771

Expand Down

0 comments on commit 18914bb

Please sign in to comment.