Update dockerfile to install extras on build (#61)

Correctly installs python extras during `docker build` (tested locally)
This commit is contained in:
Nate Barbettini 2024-09-24 18:18:10 -07:00 committed by GitHub
parent 5cf451802d
commit 6b7562f6a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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