Spaces:
Runtime error
Runtime error
Download Dockerfile from Ronr/pdf-search-api: direct link, hf CLI and curl.
- Browser
- Download file 686 Bytes
-
https://huggingface.co/spaces/Ronr/pdf-search-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ronr/pdf-search-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ronr/pdf-search-api/resolve/main/Dockerfile
686 Bytes
| 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 | |