From 2a93c4b675c297b39c76a49ecdf239c61c453735 Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Wed, 31 Aug 2022 11:38:40 -0400 Subject: [PATCH] Fixed layers for Dockerfile installing gunicorn. --- Dockerfile | 5 ++--- requirements.txt | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12bc827..66a4704 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,10 @@ -FROM tensorflow/tensorflow:2.5.0 +FROM tensorflow/tensorflow:2.9.1 ENV PASTEY_WORKERS=2 ENV PASTEY_THREADS=4 ENV PASTEY_LISTEN_PORT=5000 -RUN pip install gunicorn COPY requirements.txt /app/ RUN pip install -r /app/requirements.txt COPY . /app/ WORKDIR /app +RUN pip install gunicorn ENTRYPOINT ["sh", "-c", "gunicorn -w $PASTEY_WORKERS -t $PASTEY_THREADS -b :$PASTEY_LISTEN_PORT app:app"] -EXPOSE $PASTEY_LISTEN_PORT diff --git a/requirements.txt b/requirements.txt index 0a52746..2350cbd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Flask==1.1.2 -Flask-Limiter==1.4 -guesslang==2.2.1 -cryptography==3.4.7 \ No newline at end of file +Flask~=2.2.2 +Flask-Limiter~=2.6.2 +guesslang-experimental~=2.2.3 +cryptography~=3.4.7