Imported Upstream version 1.22.0
[platform/upstream/grpc.git] / tools / dockerfile / grpc_artifact_linux_armv7 / Dockerfile
1 # Copyright 2017 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 # Docker file for building gRPC Raspbian binaries
16
17 # TODO(https://github.com/grpc/grpc/issues/19199): Move off of this base image.
18 FROM quay.io/grpc/raspbian_armv7
19
20 # Place any extra build instructions between these commands
21 # Recommend modifying upstream docker image (quay.io/grpc/raspbian_armv7)
22 # for build steps because running them under QEMU is very slow
23 # (https://github.com/kpayson64/armv7hf-debian-qemu)
24 RUN [ "cross-build-start" ]
25 RUN find /usr/local/bin -regex '.*python[0-9]+\.[0-9]+' | xargs -n1 -i{} bash -c "{} -m pip install --upgrade wheel setuptools"
26 RUN [ "cross-build-end" ]