Spaces:
Sleeping
Sleeping
Download Dockerfile from Sara-Adjo/intel-image-classifier: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/spaces/Sara-Adjo/intel-image-classifier/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Sara-Adjo/intel-image-classifier/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Sara-Adjo/intel-image-classifier/resolve/main/Dockerfile
656 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| libglib2.0-0 \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir \ | |
| flask==3.0.0 \ | |
| pillow==10.0.0 \ | |
| numpy==1.26.0 \ | |
| gunicorn==21.2.0 | |
| RUN pip install --no-cache-dir \ | |
| torch==2.1.0 \ | |
| torchvision==0.16.0 \ | |
| --index-url https://download.pytorch.org/whl/cpu | |
| RUN pip install --no-cache-dir \ | |
| tensorflow==2.17.0 \ | |
| keras==3.4.1 | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "app:app", \ | |
| "--bind", "0.0.0.0:7860", \ | |
| "--workers", "1", \ | |
| "--timeout", "120", \ | |
| "--preload"] |