Spaces:
Running
Running
Download Dockerfile from shreyash616/echo-backend: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/spaces/shreyash616/echo-backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shreyash616/echo-backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shreyash616/echo-backend/resolve/main/Dockerfile
683 Bytes
| FROM python:3.11-slim | |
| # System deps: fpcalc (Chromaprint) for AcoustID fingerprinting, ffmpeg for MP3 decoding | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libchromaprint-tools \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy backend source | |
| COPY . . | |
| # ML artifact paths — populated at startup by startup.sh | |
| RUN mkdir -p /app/ml/inference | |
| ENV FAISS_INDEX_PATH=/app/ml/inference/music_index.faiss | |
| ENV TRACK_METADATA_PATH=/app/ml/inference/track_metadata.json | |
| EXPOSE 7860 | |
| RUN chmod +x /app/startup.sh | |
| CMD ["/app/startup.sh"] | |