Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Compile any tools we cannot install from packages
- FROM gcc:7 as builder
- USER 0
- RUN
- apt-get -y update &&
- apt-get -y install
- clang
- libc++-dev
- libgflags-dev
- libgtest-dev
- RUN
- # Protocol Buffer & gRPC
- # install protobuf first, then grpc
- git clone -b $(curl -L https://grpc.io/release)
- https://github.com/grpc/grpc /var/local/git/grpc &&
- cd /var/local/git/grpc &&
- git submodule update --init &&
- echo "--- installing protobuf ---" &&
- cd third_party/protobuf &&
- ./autogen.sh && ./configure --enable-shared &&
- make -j$(nproc) && make install && make clean && ldconfig &&
- echo "--- installing grpc ---" &&
- cd /var/local/git/grpc &&
- make -j$(nproc) && make install && make clean && ldconfig
- FROM debian
- LABEL
- Description="Basic Debian production environment with a number of libraries configured"
- MAINTAINER="Mr Me"
- ARG prefix=/usr/local
- ARG binPath=$prefix/bin
- ARG libPath=$prefix/lib
- # Copy over pre-made tools
- # Protocol Buffer
- COPY --from=builder /usr/local/lib/libproto* $libPath/
- # gRPC
- COPY --from=builder /usr/local/lib/libaddress_sorting.so.6.0.0 $libPath/
- COPY --from=builder /usr/local/lib/libgpr* $libPath/
- COPY --from=builder /usr/local/lib/libgrpc* $libPath/
- RUN ldconfig
- # Install remaining tools using apt-get
- RUN apt-get -y update &&
- apt-get -y install
- libhdf5-dev
- libssl1.1
- uuid-dev;
Add Comment
Please, Sign In to add comment