Skip to content

Instantly share code, notes, and snippets.

@aaronlelevier
Created April 6, 2015 14:37
Show Gist options
  • Select an option

  • Save aaronlelevier/db9efbbd1419e2e36d6f to your computer and use it in GitHub Desktop.

Select an option

Save aaronlelevier/db9efbbd1419e2e36d6f to your computer and use it in GitHub Desktop.
Dockerfile for django-postgres-nginx-uswgi
### Docker Commands ###
FROM ubuntu:trusty
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential git python libpq-dev python-dev python-setuptools nginx supervisor
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql postgresql-contrib
RUN easy_install pip
RUN pip install django==1.7.7 pyscopg2 uwsgi
### Bash commands ###
apt-get update
apt-get upgrade
apt-get install python-dev python-setuptools
easy_install pip
apt-get install libpq-dev python-dev
apt-get install postgresql postgresql-contrib
apt-get install -y build-essential git nginx supervisor
pip install django==1.7.7 psycopg2 uwsgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment