mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-01 18:29:32 +00:00
* remove env variables from dockerfiles * add more config options to rest api. make fields optional. change to elasticsearch as default * skip reader if retriever doesn't return anything * add more config params to farm reader. fix top_k_per_sample * update FARM version
22 lines
472 B
Docker
22 lines
472 B
Docker
FROM python:3.7.4-stretch
|
|
|
|
WORKDIR /home/user
|
|
|
|
# install as a package
|
|
COPY setup.py requirements.txt README.rst /home/user/
|
|
RUN pip install -r requirements.txt
|
|
RUN pip install -e .
|
|
|
|
# copy code
|
|
COPY haystack /home/user/haystack
|
|
|
|
# copy saved FARM 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 ["uvicorn", "haystack.api.inference:app", "--host", "0.0.0.0", "--port", "8000"] |