Dockerfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. FROM debian:stretch
  2. # Install dependencies. We start with the basic ones require to build protoc
  3. # and the C++ build
  4. RUN apt-get update && apt-get install -y \
  5. autoconf \
  6. autotools-dev \
  7. build-essential \
  8. bzip2 \
  9. ccache \
  10. curl \
  11. gcc \
  12. git \
  13. libc6 \
  14. libc6-dbg \
  15. libc6-dev \
  16. libgtest-dev \
  17. libtool \
  18. make \
  19. parallel \
  20. time \
  21. wget \
  22. && apt-get clean
  23. # Install Python 2.7
  24. RUN apt-get update && apt-get install -y python2.7 python-all-dev
  25. RUN curl https://bootstrap.pypa.io/get-pip.py | python2.7
  26. # Install python dependencies
  27. RUN apt-get update && apt-get install -y \
  28. python-setuptools \
  29. python-pip
  30. # Add Debian 'testing' repository
  31. RUN echo 'deb http://ftp.de.debian.org/debian testing main' >> /etc/apt/sources.list
  32. RUN echo 'APT::Default-Release "stable";' | tee -a /etc/apt/apt.conf.d/00local
  33. # Install Python3
  34. RUN apt-get update && apt-get -t testing install -y \
  35. python3.5 \
  36. python3.6 \
  37. python3.7 \
  38. python3.8 \
  39. python3-all-dev
  40. RUN curl https://bootstrap.pypa.io/get-pip.py | python3.5
  41. RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6
  42. RUN curl https://bootstrap.pypa.io/get-pip.py | python3.7
  43. RUN curl https://bootstrap.pypa.io/get-pip.py | python3.8