I was using the below docker file for quite sometime it was working well, But today when i tried to build the image it is throwing that pip is not installed, even though it is installed in the previous step
/bin/sh: 1: pip: not found The command '/bin/sh -c pip install setuptools wheel' returned a non-zero code: 127
Below is the text of Dockerfile till the point where the error occurred:
FROM openjdk:8-jdk-slim
LABEL maintainer="abc@ab.com"
ARG RELEASE=2.13.2
ARG UID=1000
ARG GID=1000
RUN apt-get update
RUN apt-get install --no-install-recommends -y
RUN apt-get install tzdata -y
RUN apt-get install nano -y
RUN apt-get install curl -y
RUN apt-get install vim -y
RUN apt-get install python3 -y
RUN apt-get install python3-pip -y
RUN apt-get install unzip -y
RUN ln -s `which python3` /usr/bin/python
RUN pip3 install --upgrade pip
RUN pip install setuptools wheel
RUN pip install Flask flask-swagger-ui requests
RUN apt-get install --reinstall procps -y
I am not sure what happened suddenly , my attempt into looking for similar issues didn't yield a reason so for :
Docker issue: /bin/sh: pip: not found Install pip in docker Docker Build can't find pip