bf5f07a03b7ab5cdd3816fd326c0684166be5dbe
[platform/upstream/grpc.git] / tools / dockerfile / test / python_alpine_x64 / Dockerfile
1 # Copyright 2015 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
15 FROM alpine:3.11
16
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   python2-dev \
34   py2-pip \
35   unzip \
36   wget \
37   zip
38
39 # Install Python packages from PyPI
40 RUN pip install --upgrade pip==19.3.1
41 RUN pip install virtualenv
42 RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.15.0
43
44 # Google Cloud platform API libraries
45 RUN pip install --upgrade google-auth==1.24.0 google-api-python-client==1.12.8 oauth2client==4.1.0
46
47 RUN mkdir -p /var/local/jenkins
48
49 # Define the default command.
50 CMD ["bash"]