mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-05 03:28:09 +00:00
* use new Docker images and add a health check for ES * try * silence streamlit errors * remove CMD override * final touches * leftover * make pylint happy
18 lines
332 B
Docker
18 lines
332 B
Docker
FROM python:3.7.4-stretch
|
|
|
|
# RUN apt-get update && apt-get install -y curl git pkg-config cmake
|
|
|
|
# copy code
|
|
RUN mkdir ui/
|
|
COPY . /opt/ui
|
|
|
|
# install as a package
|
|
RUN pip install --upgrade pip && \
|
|
pip install /opt/ui/
|
|
|
|
WORKDIR /opt
|
|
EXPOSE 8501
|
|
|
|
# cmd for running the API
|
|
CMD ["python", "-m", "streamlit", "run", "ui/webapp.py"]
|