Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Apr 8, 2024
1 parent 81b972c commit 5feac6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/nginxinc/kic-test-containers

go 1.21
go 1.22
6 changes: 3 additions & 3 deletions grpc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# syntax=docker/dockerfile:1.5
FROM golang:1.22 as builder

RUN GO111MODULE=off go get google.golang.org/grpc/examples/helloworld/greeter_server
WORKDIR /go/src/google.golang.org/grpc/examples/helloworld/greeter_server
RUN CGO_ENABLED=0 go build -o /greeter_server
RUN git clone -b v1.63.0 --depth 1 https://github.com/grpc/grpc-go
WORKDIR /go/grpc-go/examples
RUN CGO_ENABLED=0 go build -C helloworld/greeter_server -o /greeter_server

FROM scratch
COPY --from=builder /greeter_server /
Expand Down

0 comments on commit 5feac6e

Please sign in to comment.