Spaces:
Sleeping
Sleeping
File size: 686 Bytes
55f007f 1cf82b8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM python:3.10
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN python3 -m pip install --no-cache-dir --upgrade pip
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# CMD ["uvicorn", "app.main:app","--host","0.0.0.0","--port","8500"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
# CMD ["uvicorn", "app.main:app", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "prasank02-pdf-search-api.hf.space", "--allow-websocket-origin", "0.0.0.0:7860"]
RUN mkdir pdf_temp_storage
RUN chmod 777 pdf_temp_storage
RUN mkdir /.cache
RUN chmod 777 /.cache
RUN mkdir .chroma
RUN chmod 777 .chroma
|