I am generating a container for my application with the following dockerfile
FROM django
ADD ./cryptoassistant /cryptoassistant
WORKDIR /cryptoassistant
RUN ["chmod", "+x", "/cryptoassistant/manage.py"]
RUN ["pip", "install", "--upgrade", "pip"]
RUN ["pip", "install", "-r", "requirements.txt"]
CMD [ "python", "./manage.py", "runserver"]
When I build the container and run it it shows this: It stays here, doing nothing else, the server doesn't seem to be started because I can't access it.
I am using windows.
Does anyone know why it doesn't run the command?
Thanks.
The django image on dockerhub is deprecated in favor of the standard python image, and has not been updated since December 31, 2016. It is possible that the version of your project is not compatible with the version deployed in this container. On the dockerhub page there is also an example of how a dockerfile could be made for a django project that uses python 3.4 and postgresql:
You can start from this example and adapt the version of python to use and the necessary database dependencies.