AWS Cloud9 Building Docker Image Fail

Solution:

I'm also following same tutorial. I had same issue than you.

I solved it by :

  • Using python3-pip instead of python-pi
  • Using pip3 instead of pip

In Docker file you just need to change following lines:

  • Replace line 4 by:

    RUN apt-get install -y python3-pip python-dev build-essential

  • Replace line 5 by:

    RUN pip3 install --upgrade pip

  • Replace line 10 by:

    RUN pip3 install -r ./requirements.txt

  • Replace line 12 by:

    ENTRYPOINT ["python3"]