haystack/ui/Dockerfile
Sara Zan 767f0025c6
Make ui and rest proper packages (#2098)
* Adding simple setup.py to ui/ and rest_api and remove respective extras from main setup.cfg

* Make 'pip install rest_api/' fetch the local Haystack instead of downloading from pypi

* Add some comments to the new setup.py files and fix the Dockerfiles

* Add version info to 'farm-haystack-ui'

* Fix the OpenAPI Specs workflow

* Install rest_api and ui properly on the CI too

* Make the workflow see changes on every setup file

* Fix workflow cache keys

* Add license to rest_api and ui
2022-02-02 16:14:12 +01:00

20 lines
367 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
COPY setup.py /home/user/
COPY utils.py /home/user/
COPY webapp.py /home/user/
COPY eval_labels_example.csv /home/user/
# install as a package
RUN pip install .
EXPOSE 8501
# cmd for running the API
CMD ["streamlit", "run", "webapp.py"]