mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 12:07:04 +00:00
* 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
20 lines
367 B
Docker
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"]
|