Spaces:
Runtime error
Runtime error
Download Dockerfile from akshay1306/moodquest-api: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/akshay1306/moodquest-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/akshay1306/moodquest-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/akshay1306/moodquest-api/resolve/main/Dockerfile
607 Bytes
| FROM python:3.9-slim | |
| WORKDIR /code | |
| # Install required libraries for OpenCV | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy project files | |
| COPY . . | |
| # Create non-root user (required by Hugging Face) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Run your app (UPDATED to main.py) | |
| CMD ["python", "main.py"] |