I'm trying to run a flask app in a docker container. When I try to build a container I get
E: Unable to locate package python-pip
The command '/bin/sh -c apt-get install -y python-pip python-dev build-essential' returned a non-zero code: 100
My Dockerfile is:
FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get install -y python-pip python-dev build-essential
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
ENTRYPOINT ['python']
CMD ['app.py']
I've tried to use these commands before installing python-pip, but it didn't help:
RUN apt-get install -y software-properties-common
RUN add-apt-repository universe