From b61c09ad1290e68c52d8ede3de268e20cacd19d1 Mon Sep 17 00:00:00 2001 From: Aneesh Karve Date: Thu, 16 Apr 2020 14:04:23 -0700 Subject: [PATCH] Reorganize for better layering and make sure to use the right pip --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 52837d5..863b9d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ FROM amazonlinux:2018.03 -COPY requirements.txt quilt/requirements.txt - # Need to set "ulimit -n" to a small value to stop yum from hanging: # https://bugzilla.redhat.com/show_bug.cgi?id=1715254#c1 RUN ulimit -n 1024 && yum -y update && yum -y install \ @@ -13,11 +11,13 @@ RUN ulimit -n 1024 && yum -y update && yum -y install \ zip \ && yum clean all +COPY requirements.txt quilt/requirements.txt + RUN python3 -m pip install pip==18.1 # Requirements copied from lambda Python 3.6, but not in base image # (Plus Cython which is a build-time requirement for numpy) -RUN pip install -r quilt/requirements.txt +RUN python3 -m pip install -r quilt/requirements.txt # Make it possible to build numpy: # https://github.com/numpy/numpy/issues/14147