diff --git a/Dockerfile-2.9.alpine b/Dockerfile-2.9.alpine
index 23d9c6f21a90026e3343131c90d3f2c90bc9e298..cb29c06127d3a36f9a39f9ccae3967cd82e7378e 100644
--- a/Dockerfile-2.9.alpine
+++ b/Dockerfile-2.9.alpine
@@ -5,5 +5,6 @@ ENV REFRESHED_AT 2019-05-22
 
 RUN apk add --no-cache git openssh-client openssl ca-certificates \
     linux-headers qemu-img libffi-dev openssl-dev build-base krb5 krb5-dev
+RUN /usr/local/bin/python -m pip install --upgrade pip
 ADD requirements-2.9.txt /root/requirements.txt
-RUN pip install -r /root/requirements.txt
+RUN /usr/local/bin/python -m pip install -r /root/requirements.txt
diff --git a/Dockerfile.alpine b/Dockerfile.alpine
index 29d7a2c5c39716757ff47699a532eee63187a930..381761c5b613f0ee58fad1520bb3d10d97fdb3da 100644
--- a/Dockerfile.alpine
+++ b/Dockerfile.alpine
@@ -5,5 +5,6 @@ ENV REFRESHED_AT 2019-05-22
 
 RUN apk add --no-cache git openssh-client openssl ca-certificates \
     linux-headers qemu-img libffi-dev openssl-dev build-base krb5 krb5-dev
+RUN /usr/local/bin/python -m pip install --upgrade pip
 ADD requirements.txt /root/requirements.txt
-RUN pip install -r /root/requirements.txt
+RUN /usr/local/bin/python -m pip install -r /root/requirements.txt