Dockerfile 693 B

123456789101112131415161718192021222324252627
  1. # A image for building/testing brpc
  2. FROM ubuntu:16.04
  3. # prepare env
  4. RUN apt-get update && apt-get install -y --no-install-recommends \
  5. curl \
  6. apt-utils \
  7. openssl \
  8. ca-certificates
  9. # install deps
  10. RUN apt-get update && apt-get install -y --no-install-recommends \
  11. git \
  12. g++ \
  13. make \
  14. libssl-dev \
  15. libgflags-dev \
  16. libprotobuf-dev \
  17. libprotoc-dev \
  18. protobuf-compiler \
  19. libleveldb-dev \
  20. libsnappy-dev && \
  21. apt-get clean -y
  22. RUN git clone https://github.com/brpc/brpc.git brpc
  23. RUN cd /brpc && sh config_brpc.sh --headers=/usr/include --libs=/usr/lib && \
  24. make -j "$(nproc)"