A base image for django projects.
This is a base image for django projects. It is based on the python base image (which in turn is based on debian).
This image makes some other assumptions in particular:
NOTE: Django itself is not installed in this image - you must add it in your REQUIREMENTS.txt file.
There are several ways to get the image onto your system:
This will consume the most bandwidth for the initial build but will be easy to update thereafter.
docker pull kartoza/django-base
to build the image without checking out the build repo do:
docker build -t kartoza/django-base git://github.com/timlinux/docker-django-base
git clone git://github.com/timlinux/docker-django-base
docker build -t kartoza/django-base .
You should use the FROM directive in your Dockerfile to inherit from this file and then install your requirements like this:
FROM kartoza/django-base
ADD REQUIREMENTS.txt /REQUIREMENTS.txt
RUN pip install -r /REQUIREMENTS.txt
RUN pip install uwsgi
Tim Sutton ([email protected]) December 2014
Content type
Image
Digest
sha256:b5d1ba3aa…
Size
414.5 MB
Last updated
over 7 years ago
docker pull kartoza/django-base