Created
October 9, 2014 08:59
-
-
Save kaedroho/5920ddf6751e7c7c5812 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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