mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-04 10:58:45 +00:00
* setup base images * add cpu flavor * use the same Dockerfile for cpu and gpu * better naming, add docs * add docker workflow * add missing image input * change cwd for bake * also push api images * try conditional tagging for releases * revert testing code * update docker readme * document variable override * use Python 3.10 * allow empty HAYSTACK_EXTRAS * Apply suggestions from code review Co-authored-by: Sara Zan <sara.zanzottera@deepset.ai> * remove repo description step, can't make it work so far * add docs to the last step as it's tricky * manage tags for the newest images * tests are passing, checking in the last bit Co-authored-by: Sara Zan <sara.zanzottera@deepset.ai>
14 lines
439 B
Docker
14 lines
439 B
Docker
ARG base_image_tag
|
|
|
|
FROM deepset/haystack:${base_image_tag}
|
|
|
|
# Create a folder for the /file-upload API endpoint with write permissions
|
|
RUN mkdir -p /opt/file-upload && chmod 777 /opt/file-upload
|
|
|
|
# Tell rest_api which folder to use for uploads
|
|
ENV FILE_UPLOAD_PATH="/opt/file-upload"
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["gunicorn", "rest_api.application:app", "-b", "0.0.0.0", "-k", "uvicorn.workers.UvicornWorker", "--workers", "1", "--timeout", "180"]
|