From 447058f0ce5b8d48d653793f4a2368cc09db14cb Mon Sep 17 00:00:00 2001 From: Sterling Dreyer Date: Thu, 19 Sep 2024 12:46:50 -0700 Subject: [PATCH] Install additional packages in docker (#46) --- docker/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 7c1507a4..a028cacd 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -23,7 +23,7 @@ RUN apt-get update && apt-get install -y \ WORKDIR /app -RUN pip install build +RUN pip install build poetry # Copy the parent directory contents into the container COPY . . @@ -34,7 +34,11 @@ WORKDIR /app/arcade RUN python -m build # Build the project and install the wheel with extras -RUN python -m pip install dist/arcade_ai-0.1.0-py3-none-any.whl[fastapi,dev] uvicorn +RUN poetry export --with fastapi,dev,evals --output requirements.txt + +# This doesnt install the optional packages for some reason +RUN python -m pip install dist/arcade_ai-0.1.0-py3-none-any.whl[fastapi,dev,evals] uvicorn +RUN python -m pip install -r requirements.txt WORKDIR /app/toolkits