perform pip upgrade when building python images

diff --git a/rainbow/build/image/python/Dockerfile b/rainbow/build/image/python/Dockerfile
index 8e4de05..4a91690 100644
--- a/rainbow/build/image/python/Dockerfile
+++ b/rainbow/build/image/python/Dockerfile
@@ -32,6 +32,7 @@
 COPY ./requirements.txt /app/
 
 # mount the secret in the correct location, then run pip install
+RUN pip install --upgrade pip
 RUN {{mount}} pip install -r requirements.txt
 
 # Copy the current directory contents into the container at /app
diff --git a/rainbow/build/service/python_server/Dockerfile b/rainbow/build/service/python_server/Dockerfile
index 4d4254f..e329738 100644
--- a/rainbow/build/service/python_server/Dockerfile
+++ b/rainbow/build/service/python_server/Dockerfile
@@ -29,6 +29,8 @@
 # Be careful when changing this code.                                                            !
 
 # Install any needed packages specified in python_server_requirements.txt and requirements.txt
+RUN pip install --upgrade pip
+
 COPY ./python_server_requirements.txt /app/
 RUN pip install -r python_server_requirements.txt