Dockerfile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 2016 gRPC authors.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. FROM debian:jessie
  15. RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
  16. # Install packages needed for gRPC and protobuf
  17. RUN apt-get update && apt-get install -y \
  18. autoconf \
  19. automake \
  20. build-essential \
  21. curl \
  22. git \
  23. g++ \
  24. libtool \
  25. make \
  26. pkg-config \
  27. unzip && apt-get clean
  28. RUN echo "deb http://archive.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/jessie-backports.list
  29. RUN echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf
  30. RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
  31. RUN apt-get update && apt-get install -t jessie-backports -y cmake && apt-get clean
  32. CMD ["bash"]