@@ -26,6 +26,11 @@ RUN apt-get update && \
26
26
RUN curl -L -s https://go.dev/dl/go$GO_VERSION.linux-$TARGETARCH.tar.gz | tar -C /usr/local -xz
27
27
ENV PATH $PATH:/usr/local/go/bin
28
28
29
+ # Install grpc compilers
30
+ ENV PATH $PATH:/root/go/bin
31
+ RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
32
+ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
33
+
29
34
# Install protobuf (the version in 22.04 is too old)
30
35
RUN curl -L -s https://github.com/protocolbuffers/protobuf/releases/download/v26.1/protoc-26.1-linux-x86_64.zip -o protoc.zip && \
31
36
unzip -j -d /usr/local/bin protoc.zip bin/protoc && \
@@ -143,11 +148,6 @@ COPY . .
143
148
COPY .git .
144
149
RUN echo "GO_TAGS: $GO_TAGS"
145
150
146
- # Install grpc compilers
147
- ENV PATH $PATH:/root/go/bin
148
- RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
149
- go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
150
-
151
151
RUN apt-get update && \
152
152
apt-get install -y build-essential cmake git && \
153
153
apt-get clean && \
@@ -227,7 +227,7 @@ COPY . .
227
227
COPY --from=builder /build/sources ./sources/
228
228
COPY --from=grpc /build/grpc ./grpc/
229
229
230
- RUN cd /build/grpc/cmake/build && make install && rm -rf /build/grpc
230
+ RUN make prepare-sources && cd /build/grpc/cmake/build && make install && rm -rf /build/grpc
231
231
232
232
# Copy the binary
233
233
COPY --from=builder /build/local-ai ./
0 commit comments