Fix rest api in Docker image after refactoring (#178)

This commit is contained in:
Guillim 2020-06-26 17:52:46 +02:00 committed by GitHub
parent b3858a07eb
commit 27b8c98227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ RUN pip install -e .
# copy code
COPY haystack /home/user/haystack
COPY rest_api /home/user/rest_api
# copy saved FARM models
COPY models /home/user/models
@ -19,4 +20,4 @@ COPY models /home/user/models
EXPOSE 8000
# cmd for running the API
CMD ["gunicorn", "haystack.api.application:app", "-b", "0.0.0.0", "-k", "uvicorn.workers.UvicornWorker", "--workers", "2"]
CMD ["gunicorn", "rest_api.application:app", "-b", "0.0.0.0", "-k", "uvicorn.workers.UvicornWorker", "--workers", "2"]