Skip to content

Instantly share code, notes, and snippets.

@kaedroho
Created October 9, 2014 08:59
Show Gist options
  • Save kaedroho/5920ddf6751e7c7c5812 to your computer and use it in GitHub Desktop.
Save kaedroho/5920ddf6751e7c7c5812 to your computer and use it in GitHub Desktop.
FROM kaedroho/wagtail-base
MAINTAINER Karl Hobley
# PIP install uwsgi before adding the code so it's cached (and doesn't rebuild from scratch on every run of docker build)
RUN pip install uwsgi
# Add the code and cd to it
ADD . /usr/local/django/mysite
WORKDIR /usr/local/django/mysite
# Install pip requirements for project
RUN pip install -r requirements.txt
VOLUME ["/usr/local/django/mysite/static", "/usr/local/django/mysite/media"]
EXPOSE 80
CMD ["uwsgi", "--ini", "uwsgi.ini"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment