A Simple image based on CentOS 6 with python 2.7 (SCL repository)
With Django embedded webserver:
$ docker run -ti --rm -v /path/to/myapp/:/data -p 8000:8000 xdrum/django:latest python testproject/manage.py runserver 0.0.0.0:8000
With gunicorn and wsgi:
$ docker run -ti --rm -v /path/to/myapp:/data -p 8000:8000 xdrum/django:latest gunicorn -w 2 --bind=0.0.0.0:8000 testproject.wsgi:application
Note that various versions (tag) are currently available from Docker hub, but it's easy to build a specific image using the Dockerfile just passing a different DJANGO_VERSION.
Content type
Image
Digest
sha256:a85496aae…
Size
152.3 MB
Last updated
almost 11 years ago
docker pull xdrum/django