mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-09 06:13:43 +00:00
update docker for fastAPI
This commit is contained in:
parent
30053bb468
commit
eee2676cb0
@ -11,7 +11,12 @@ RUN pip install -e .
|
|||||||
COPY haystack /home/user/haystack
|
COPY haystack /home/user/haystack
|
||||||
|
|
||||||
# copy saved FARM models
|
# copy saved FARM models
|
||||||
COPY saved_models /home/user/saved_models
|
COPY models /home/user/models
|
||||||
|
|
||||||
|
# copy sqlite db if needed for testing
|
||||||
|
#COPY qa.db /home/user/
|
||||||
|
|
||||||
|
EXPOSE 8000
|
||||||
|
|
||||||
# cmd for running the API
|
# cmd for running the API
|
||||||
CMD FLASK_APP=haystack.api.inference flask run --host 0.0.0.0
|
CMD ["uvicorn", "haystack.api.inference:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||||
Loading…
x
Reference in New Issue
Block a user