- Create a new Python virtual environment
virtualenv -p python3.9 venv
- Activate the virtual environment
source venv/bin/activate
- Install requirements with PIP
pip install -r requirements.txt --no-cache-dir
- Run the application
uvicorn app.main:app --host 0.0.0.0 --reload
- Building the Docker image
sudo docker build --tag linux-profile/dev --file docker/Dockerfile .
- Starting the Docker container
sudo docker run --name my_profile -d -p 80:80 linux-profile/dev