The requirements.txt file in the crypto_stats folder defines the Python package dependencies of our Django project. To install these dependencies, please issue the following docker run command.
The -p 8000:8000 parameter exposes port 8000 from the guest to the host machine. The -it parameter creates a pseudo-terminal with stdin support to allow an interactive terminal session.
We are again using the django image, but this time we launch a Bash Terminal shell instead:
docker run -v "$(pwd)":/app -p 8000:8000 -it django bash
cd crypto_stats
pip install -r requirements.txt
You should make sure that you are still in your root project folder (that is, Django) when you issue the command.
The chain of commands would produce the following results: