Spaces:
Sleeping
Sleeping
Download Dockerfile from Omnia-cy/Hackathon_GDG_Image_Model: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/spaces/Omnia-cy/Hackathon_GDG_Image_Model/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Omnia-cy/Hackathon_GDG_Image_Model/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Omnia-cy/Hackathon_GDG_Image_Model/resolve/main/Dockerfile
335 Bytes
| FROM python:3.10 | |
| WORKDIR /code | |
| # system dependencies (OCR) | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| libgl1 | |
| # install python deps | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # copy app | |
| COPY app.py . | |
| # run API | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |