diff options
author | Petteri Aimonen <jpa@github.mail.kapsi.fi> | 2020-05-28 19:35:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 09:35:24 -0700 |
commit | 21b4c78861d69f7bf3faeaeedeb7e5f4602b8904 (patch) | |
tree | 9f8a1b55e056c1bbe8d929d95f0db9f9dcada2ff /projects/nanopb | |
parent | c1de59d07df11e81530d67df80d423612b3ccab6 (diff) | |
download | oss-fuzz-21b4c78861d69f7bf3faeaeedeb7e5f4602b8904.tar.gz |
[nanopb] Use $(which python3) instead of hardcoding /usr/bin/python3 (#3895)
After the addition of Python 3.8 in #3874, the default python3 is
now /usr/local/bin/python3. The nanopb Dockerfile hardcoded a path
of /usr/bin/python3, causing again problems of Python packages being
installed for different version than attempting to run with.
Diffstat (limited to 'projects/nanopb')
-rw-r--r-- | projects/nanopb/Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/nanopb/Dockerfile b/projects/nanopb/Dockerfile index fccb1ba1b..f241ac93e 100644 --- a/projects/nanopb/Dockerfile +++ b/projects/nanopb/Dockerfile @@ -19,7 +19,7 @@ MAINTAINER jpa@npb.mail.kapsi.fi RUN apt-get update && apt-get install -y python3-pip git wget RUN python3 -m pip install --upgrade pip RUN pip3 install protobuf grpcio-tools scons -RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 100 +RUN update-alternatives --install /usr/bin/python python $(which python3) 100 RUN git clone --depth 1 https://github.com/nanopb/nanopb $SRC/nanopb COPY build.sh $SRC/ |