I have in my Dockerfile :
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "3", "nerul.wsgi:application"]
But docker run -p 8000:8000 -v ${PWD}:/app nerul-docker
doesn't work because it says "ModuleNotFoundError: No module named 'nerul'" even though my directory structure is correct
docker run -p 8000:8000 nerul-docker works but there's no hot-reload.
So how do I make my Dockerfile such that for dev it has
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
while for PROD it has
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "3", "nerul.wsgi:application"]
?