mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-29 11:50:34 +00:00

* Fix a path issue in Dockerfile-GPU * Fix paths in Dockerfile-GPU * Add workflow_dispatch to docker build task * Remove reference to optional component from ui/, not needed anymore * Move pytorch installation last to avoid replacing it later * Remove optional import from rest_api too, no more needed * Change path in ui/Dockerfile * ui container works again * Complete review of import paths Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
22 lines
438 B
Docker
22 lines
438 B
Docker
FROM python:3.7.4-stretch
|
|
|
|
WORKDIR /home/user
|
|
|
|
RUN apt-get update && apt-get install -y curl git pkg-config cmake
|
|
|
|
# copy code
|
|
RUN mkdir ui/
|
|
COPY setup.py /home/user/ui
|
|
COPY utils.py /home/user/ui
|
|
COPY webapp.py /home/user/ui
|
|
COPY eval_labels_example.csv /home/user/
|
|
|
|
# install as a package
|
|
RUN pip install --upgrade pip
|
|
RUN pip install ui/
|
|
|
|
EXPOSE 8501
|
|
|
|
# cmd for running the API
|
|
CMD ["python", "-m", "streamlit", "run", "ui/webapp.py"]
|