Skip to content

gdml/django-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Docker image we use to deploy our django-based services

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •