mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-01 10:19:23 +00:00
Fix rest api in Docker image after refactoring (#178)
This commit is contained in:
parent
b3858a07eb
commit
27b8c98227
@ -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"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user