Spaces:
Runtime error
Runtime error
Download Dockerfile from pykara/Py-detect-backend: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/pykara/Py-detect-backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pykara/Py-detect-backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pykara/Py-detect-backend/resolve/main/Dockerfile
492 Bytes
| FROM python:3.10-slim | |
| # System packages for pyodbc, OpenCV, etc. | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| unixodbc-dev \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the backend code and data files | |
| COPY . . | |
| EXPOSE 7860 | |
| # Start the Flask app | |
| CMD ["python", "app.py"] | |