Spaces:
Build error
Build error
Download Dockerfile from starkbyte45896/Emotionbasedmusic: direct link, hf CLI and curl.
- Browser
- Download file 725 Bytes
-
https://huggingface.co/spaces/starkbyte45896/Emotionbasedmusic/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/starkbyte45896/Emotionbasedmusic/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/starkbyte45896/Emotionbasedmusic/resolve/main/Dockerfile
725 Bytes
| # Use a lightweight Python image | |
| FROM python:3.9-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| # Install system dependencies (OpenCV needs them) | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Create working directory | |
| WORKDIR /app | |
| # Copy dependencies file first (better Docker caching) | |
| COPY requirement.txt . | |
| # Install Python dependencies | |
| RUN pip install --upgrade pip && pip install -r requirement.txt | |
| # Copy all project files | |
| COPY . . | |
| # Expose port for Hugging Face Spaces | |
| EXPOSE $PORT | |
| # Run your app | |
| CMD ["python", "app.py"] | |