I am trying to build an image for one of my program which has the dependencies on numpy, sklearn, matplotlib and flask. I have kept all these dependencies in the requirements.txt file as
flask
matplotlib==3.3.4
numpy==1.20.1
sklearn==0.0
In my Dockerfile I wrote the following commands:
FROM alpine
WORKDIR /usr/src/app
RUN apk add python3 py3-pip
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY . .
CMD ["python3", "./app.py"]
CMD ["python3", "./web.py"]
while building it with command docker build -t cluster-ml .
, at step 5/8 i.e. in install requirements.txt, it gets stuck when installing matplotlib like forever. What is that I am doing wrong?