Skip to content

Commit

Permalink
Update dockerfile to build protoc plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley-cheung committed Nov 7, 2019
1 parent 0e45b53 commit 4bedc90
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions net/grpc/gateway/docker/protoc_plugin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ubuntu:14.04
FROM debian:stretch

ARG MAKEFLAGS=-j8

Expand All @@ -23,22 +23,16 @@ RUN apt-get -qq update && apt-get -qq install -y \
curl \
git \
libtool \
libpcre3-dev \
libssl-dev \
make \
software-properties-common \
zip

WORKDIR /github/grpc-web

RUN git clone https://github.com/grpc/grpc-web .

COPY ./javascript ./javascript

RUN ./scripts/init_submodules.sh
COPY . .

RUN cd ./third_party/grpc/third_party/protobuf && \
./autogen.sh && ./configure && make && make install
./autogen.sh && ./configure && make && make install && ldconfig

RUN cd ./javascript/net/grpc/web && \
make protoc-gen-grpc-web

0 comments on commit 4bedc90

Please sign in to comment.