haystack/ui/Dockerfile

22 lines
438 B
Docker
Raw Normal View History

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"]