Skip to content

Commit

Permalink
sort layouts dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jul 17, 2024
1 parent 5f1fa49 commit 4535d08
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
FROM golang:1.22-alpine3.20 AS builder

RUN go install -v -ldflags "-s -w" google.golang.org/protobuf/cmd/protoc-gen-go@latest &&\
go install -v -ldflags "-s -w" google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

COPY . /src

WORKDIR /src/protoc-gen-gripmock

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

FROM golang:1.22-alpine3.20 as protoc-builder

ENV PROTOC_VERSION=27.2
Expand All @@ -31,6 +20,17 @@ RUN apk --no-cache add git curl unzip \
&& find /usr/include/protobuf -not -name "*.proto" -type f -delete \
&& find /usr/include/googleapis -not -name "*.proto" -type f -delete

FROM golang:1.22-alpine3.20 AS builder

RUN go install -v -ldflags "-s -w" google.golang.org/protobuf/cmd/protoc-gen-go@latest &&\
go install -v -ldflags "-s -w" google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

COPY . /src

WORKDIR /src/protoc-gen-gripmock

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

FROM golang:1.22-alpine3.20

LABEL org.opencontainers.image.source=https://github.com/bavix/gripmock
Expand Down

0 comments on commit 4535d08

Please sign in to comment.