mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-05 11:38:20 +00:00
* rename database to documentstore * move document, label, multilabel to haystack/schema.py * rename documentstore -> document_store * split indexing modules -> file_converter + preprocessor * fix order of imports * Update tutorial notebooks * fix torch version in tutorial 4
27 lines
676 B
Docker
27 lines
676 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 rest_api /home/user/rest_api
|
|
|
|
# copy saved FARM models
|
|
COPY README.rst models* /home/user/models/
|
|
|
|
# optional : copy sqlite db if needed for testing
|
|
#COPY qa.db /home/user/
|
|
|
|
# optional: copy data directory containing docs for ingestion
|
|
#COPY data /home/user/data
|
|
|
|
EXPOSE 8000
|
|
|
|
# cmd for running the API
|
|
CMD ["gunicorn", "rest_api.application:app", "-b", "0.0.0.0", "-k", "uvicorn.workers.UvicornWorker", "--workers", "2", "--timeout", "180"]
|