Sign inSign up

gdml/django-base

By gdml

Updated over 5 years ago

Base image we use to deploy our django-based services.

Image
0

4.9K

gdml/django-base repository overview

Base django docker image

Usage

FROM gdml/django-base

WORKDIR /srv

ADD . /srv
RUN ./manage.py compilemessages
RUN ./manage.py collectstatic --noinput

# Developer machine, autoreload
CMD ["dockerize", "-wait", "tcp://postgres:5432", "-timeout", "60s",   "./manage.py", "runserver", "0.0.0.0:8000"]

# Prod machine
CMD ["uwsgi", "--http", ":8000", "--module", "app.wsgi", "--workers", "2", "--threads", "2"]

Your requirements.txt should be located in the same folder as the Dockerfile.

Contents

Tag summary

Content type

Image

Digest

Size

261.2 MB

Last updated

over 6 years ago

docker pull gdml/django-base