Sorry guys, I am still quite new to Python. I am creating an application through Docker that monitors the cpu usage of a certain application running on the computer and it uses psutil. However when I run the application it doesn't work as it uses the Docker containers system etc. I was wondering if this is possible? This is my Dockerfile and I am working on a mac. I have read about mounting but I don't really understand how to do it.
FROM python:3.9
RUN apt-get update -y && \
apt-get install -y python3-pip python3-dev
COPY requirements.txt .
WORKDIR /
RUN pip3 install -r requirements.txt
COPY . /
CMD ["python", "app/dbfile.py" ]