From 388da86fa67cdd0809743d4d4d62f364ccbcc3b0 Mon Sep 17 00:00:00 2001 From: Hugo Montenegro Date: Sun, 18 Jul 2021 13:31:59 +0200 Subject: [PATCH] Starlette v 0.14 or higher breaks this. See related ticket: https://github.com/tiangolo/fastapi/pull/2335 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 22fa24b..b1d894a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ COPY checkpoint /checkpoint # Make changes to the requirements/app here. # This Dockerfile order allows Docker to cache the checkpoint layer # and improve build times if making changes. -RUN pip3 --no-cache-dir install tensorflow==1.15.2 gpt-2-simple starlette uvicorn ujson +RUN pip3 --no-cache-dir install tensorflow==1.15.2 gpt-2-simple starlette==0.13.8 uvicorn ujson COPY app.py / # Clean up APT when done.