From 594c22a050a408c947fd2831ea6acec0da128ae4 Mon Sep 17 00:00:00 2001 From: DarthDippy Date: Thu, 3 May 2018 20:27:34 -0400 Subject: [PATCH] froze pip package versions, upgraded pip, pointed to ubuntu 17 --- docker/conda/Dockerfile | 1 + docker/flask/Dockerfile | 3 ++- source/python/requirements.txt | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docker/conda/Dockerfile b/docker/conda/Dockerfile index 3726197..a8b2277 100644 --- a/docker/conda/Dockerfile +++ b/docker/conda/Dockerfile @@ -4,6 +4,7 @@ RUN /opt/conda/bin/conda install jupyter -y --quiet && mkdir /opt/notebooks COPY ./source/python /python WORKDIR /python +RUN pip install --upgrade pip RUN pip install -r requirements.txt CMD /opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=5002 --no-browser diff --git a/docker/flask/Dockerfile b/docker/flask/Dockerfile index 48de856..f7c6745 100644 --- a/docker/flask/Dockerfile +++ b/docker/flask/Dockerfile @@ -1,9 +1,10 @@ -FROM ubuntu +FROM ubuntu:17.10 RUN apt-get update -y && apt-get install -y python3 python3-pip python3-dev build-essential COPY ./source/python /python WORKDIR /python +RUN pip3 install --upgrade pip RUN pip3 install -r requirements.txt CMD python3 /python/d4d/flask_app.py diff --git a/source/python/requirements.txt b/source/python/requirements.txt index 8743a8c..888940d 100644 --- a/source/python/requirements.txt +++ b/source/python/requirements.txt @@ -1,4 +1,4 @@ -Flask -records -psycopg2 -pymongo \ No newline at end of file +Flask==1.0.2 +records==0.5.2 +psycopg2-binary==2.7.4 +pymongo==3.6.1