Spaces:
Sleeping
Sleeping
Download Dockerfile from HycJack/fastapi_rapidocr: direct link, hf CLI and curl.
- Browser
- Download file 598 Bytes
-
https://huggingface.co/spaces/HycJack/fastapi_rapidocr/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HycJack/fastapi_rapidocr/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HycJack/fastapi_rapidocr/resolve/main/Dockerfile
598 Bytes
| FROM python:3.10 | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| RUN chmod -R 777 /code | |
| RUN chmod -R 777 /usr/local/lib/python3.10/site-packages/rapidocr/ | |
| RUN mkdir /code/tmp_uploads | |
| RUN chmod -R 777 /code/tmp_uploads | |
| RUN mkdir /usr/local/lib/python3.10/site-packages/rapid_table/models | |
| RUN chmod -R 777 /usr/local/lib/python3.10/site-packages/rapid_table/models | |
| RUN pip uninstall opencv-python -y | |
| RUN pip install opencv-python-headless | |
| COPY . . | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |