Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM disqus/nginx:python2.7-light
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# First compile numpy by itself so we never have to do this again
COPY requirements/numpy.txt requirements/numpy.txt
RUN pip install --no-cache-dir -r requirements/numpy.txt
# Install dev stuff early becaues they prob don't change
COPY requirements/dev.txt requirements/dev.txt
RUN pip install --no-cache-dir -r requirements/dev.txt
# Install our global dependencies
COPY requirements/global.txt requirements/global.txt
RUN pip install --no-cache-dir -r requirements/global.txt
COPY . /usr/src/app
EXPOSE 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment