Update dockerfile to install extras on build (#61)
Correctly installs python extras during `docker build` (tested locally)
This commit is contained in:
parent
5cf451802d
commit
6b7562f6a2
1 changed files with 3 additions and 3 deletions
|
|
@ -34,10 +34,10 @@ WORKDIR /app/arcade
|
||||||
RUN python -m build
|
RUN python -m build
|
||||||
|
|
||||||
# Build the project and install the wheel with extras
|
# 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
|
# Install the wheel with extras
|
||||||
RUN python -m pip install dist/arcade_ai-0.1.0-py3-none-any.whl[fastapi,dev,evals] uvicorn
|
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
|
RUN python -m pip install -r requirements.txt
|
||||||
|
|
||||||
WORKDIR /app/toolkits
|
WORKDIR /app/toolkits
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue