Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattrobenolt/c14bb235852cf72b66c5 to your computer and use it in GitHub Desktop.
Save mattrobenolt/c14bb235852cf72b66c5 to your computer and use it in GitHub Desktop.
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