Spaces:
Build error
Build error
Download Dockerfile from yomna-ashraf/RetinaDetectionAPI: direct link, hf CLI and curl.
- Browser
- Download file 374 Bytes
-
https://huggingface.co/spaces/yomna-ashraf/RetinaDetectionAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/yomna-ashraf/RetinaDetectionAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/yomna-ashraf/RetinaDetectionAPI/resolve/main/Dockerfile
374 Bytes
| FROM python:3.8-slim | |
| WORKDIR /app # Set the working directory in the container | |
| COPY requirements.txt ./ # Copy the requirements file | |
| RUN pip install --no-cache-dir -r requirements.txt # Install dependencies | |
| # Clear Hugging Face cache | |
| RUN rm -rf /root/.cache/huggingface | |
| COPY app.py ./ # Copy your Flask app | |
| CMD ["python", "app.py"] # Command to run your Flask app | |