Dockerfile.template 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. %YAML 1.2
  2. --- |
  3. # Copyright 2018 The gRPC Authors
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. FROM alpine:3.11
  17. # Install Git and basic packages.
  18. RUN apk update && apk add \
  19. autoconf \
  20. automake \
  21. bzip2 \
  22. build-base \
  23. cmake \
  24. ccache \
  25. curl \
  26. gcc \
  27. git \
  28. libtool \
  29. linux-headers \
  30. make \
  31. perl \
  32. strace \
  33. python3-dev \
  34. py3-pip \
  35. unzip \
  36. wget \
  37. zip
  38. RUN ln -s /usr/bin/pip3 /usr/bin/pip
  39. RUN ln -s /usr/bin/python3 /usr/bin/python
  40. # Install Python packages from PyPI
  41. RUN python3 -m pip install --upgrade pip==19.3.1
  42. RUN python3 -m pip install virtualenv
  43. RUN python3 -m pip install futures==3.1.1 enum34==1.1.10 protobuf==3.5.2.post1 six==1.16.0
  44. <%include file="../../gcp_api_libraries.include"/>
  45. <%include file="../../ccache.include"/>