Spaces:
Sleeping
Sleeping
Download Dockerfile from Afnaan04/Car_vs_Bike_Classification: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/spaces/Afnaan04/Car_vs_Bike_Classification/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Afnaan04/Car_vs_Bike_Classification/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Afnaan04/Car_vs_Bike_Classification/resolve/main/Dockerfile
392 Bytes
| # Use Python 3.11 slim image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy only the backend directory contents and model | |
| COPY backend/ ./backend/ | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r backend/requirements.txt | |
| # Expose the default Hugging Face Space port | |
| EXPOSE 7860 | |
| # Run the unified Flask server | |
| CMD ["python", "backend/main.py"] | |