I am using:
- Ubuntu 16.04.
- Docker version 1.12.6.
I want to containerize my existing Django app., knowing that everything goes well in this app. => no bugs, no errors...
My Dockerfile:
FROM django
ADD . /BackendServer
WORKDIR /BackendServer
RUN pip install -r requirements.txt
CMD [ "python", "BackendServer/manage.py runserver 0.0.0.0:8000" ]
requirements.txt
djangorestframework
gunicorn
Now everything goes well, except the last line when executing the manage.py python, it says: "python: can't open file 'BackendServer/manage.py runserver 0.0.0.0:8000': [Errno 2] No such file or directory".
So, I execute the following command: "sudo docker run backendserver ./BackendServer/manage.py runserver 0.0.0.0:8000"
I got no errors and still the server is not running!!
What shall I do so that I can access the django server !? Please help!!
thanks in advance!