autoland: use docker cache for requirements.txt (
bug 1330812) r?smacleod
Move the installation of python libraries by pip into their own Dockerfile
statements so docker will cache them more aggressively.
MozReview-Commit-ID: JAjydKBzPWF
--- a/autoland/public-web-api/Dockerfile-dev
+++ b/autoland/public-web-api/Dockerfile-dev
@@ -1,11 +1,14 @@
FROM python:3.5-alpine
+
+ADD requirements.txt /requirements.txt
+RUN pip install -r /requirements.txt
+
ADD . /app
WORKDIR /app
-RUN pip install -r requirements.txt
# We install outside of the app directory to create the .egg-info in a
# location that will not be mounted over. This means /app needs to be
# added to PYTHONPATH though.
ENV PYTHONPATH /app
RUN cd / && python /app/setup.py develop
CMD ["autolandweb"]