I'm running this simple flask app in vs code. Dockerized it and loaded to ECS. The task is exiting with the following error:
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/local/lib/python3.10/collections/init.py)
The base image I'm using is python3.10.
Following is the dockerfile code:
FROM python:3.10
WORKDIR /usr/src/app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
Why am I getting this error?