update docker for fastAPI

This commit is contained in:
Malte Pietsch 2020-02-28 17:49:08 +01:00
parent 30053bb468
commit eee2676cb0

View File

@ -11,7 +11,12 @@ RUN pip install -e .
COPY haystack /home/user/haystack
# 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 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"]