From 6d1dcd6b8c0c831c613e60b35ed95cb876c6c9cc Mon Sep 17 00:00:00 2001 From: Jenny Shih Date: Wed, 27 Sep 2023 10:55:37 -0400 Subject: [PATCH] update tensorflow version --- lambda/JobPredict/Dockerfile | 2 +- modeling/Dockerfile | 6 +++--- modeling/requirements.txt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lambda/JobPredict/Dockerfile b/lambda/JobPredict/Dockerfile index 7c457ec..61548c9 100644 --- a/lambda/JobPredict/Dockerfile +++ b/lambda/JobPredict/Dockerfile @@ -16,6 +16,6 @@ RUN mv /etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-bundle.crt.org && ln -s /e RUN yum update -y java-1.8.0-openjdk #RUN python3.7 -m pip install --upgrade pip && python3.7 -m pip install -r requirements.txt && python3.7 -m pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.6.2-cp37-cp37m-manylinux2010_x86_64.whl -RUN python3.11 -m pip install --upgrade pip && python3.11 -m pip install -r requirements.txt && python3.11 -m pip install tensorflow-cpu==2.13.0 +RUN python3.11 -m pip install --upgrade pip && python3.11 -m pip install -r requirements.txt && python3.11 -m pip install tensorflow-cpu==2.12.1 ADD models ./models/ CMD ["predict_handler.lambda_handler"] diff --git a/modeling/Dockerfile b/modeling/Dockerfile index 78aa4ae..b60d638 100644 --- a/modeling/Dockerfile +++ b/modeling/Dockerfile @@ -25,9 +25,9 @@ unzip \ zlib1g-dev RUN DEBIAN_FRONTEND=noninteractive \ -&& curl -o Python-3.11.0.tgz https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tgz \ -&& tar -xf Python-3.11.0.tgz \ -&& cd Python-3.11.0 \ +&& curl -o Python-3.11.5.tgz https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tgz \ +&& tar -xf Python-3.11.5.tgz \ +&& cd Python-3.11.5 \ && ./configure --enable-optimizations \ && make altinstall \ && update-alternatives --install /usr/local/bin/python python /usr/local/bin/python3.11 10 diff --git a/modeling/requirements.txt b/modeling/requirements.txt index 627820f..04d0bc0 100644 --- a/modeling/requirements.txt +++ b/modeling/requirements.txt @@ -1,4 +1,4 @@ -tensorflow==2.13.0 +tensorflow==2.12.1 scikit-learn==1.3.0 boto3==1.17.79 pandas==2.1.0