From 6b7562f6a2ba268a660ed74857dfe19da60fe5cd Mon Sep 17 00:00:00 2001 From: Nate Barbettini Date: Tue, 24 Sep 2024 18:18:10 -0700 Subject: [PATCH] Update dockerfile to install extras on build (#61) Correctly installs python extras during `docker build` (tested locally) --- docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 2331d2ac..20afe3e0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -34,10 +34,10 @@ WORKDIR /app/arcade RUN python -m build # Build the project and install the wheel with extras -RUN poetry export --with fastapi,dev,evals --output requirements.txt +RUN poetry export --extras "fastapi 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 +# Install the wheel with extras +RUN python -m pip install dist/arcade_ai-0.1.0-py3-none-any.whl[fastapi,evals] uvicorn RUN python -m pip install -r requirements.txt WORKDIR /app/toolkits