Base image for production ready django setup
2.7K
This image is useful if you want to create production setup for your django application. Essentially it runs 2 processes:
/srv/application/srv/static/srv/media.APP_MODULE which contains the name of the module to be used as wsgi entry point.
E.g. your_app.wsgiEnsure you updated your django settings accordingly (especially MEDIA_ROOT and STATIC_ROOT).
Here is an example of the Dockerfile which creates an image from the source code (it might be run on CI server as a part of build process):
FROM logicify/django:1.1
COPY build/code /srv/application
COPY build/static /srv/static
RUN source /srv/virtenv/bin/activate && \
LANG=en_US.utf8 pip install -r requirements.txt
ENV APP_MODULE "our_app.wsgi"
ENV APP_PROCESS_NAME "our-app-name"
So basically what it does is copying files from the build folder into valid locations, setting up all dependencies an required variables. As result you have ready to deploy image.
90)/static)/srv/static)/srv/media)Content type
Image
Digest
Size
425.7 MB
Last updated
almost 8 years ago
docker pull logicify/django