Spaces:
Sleeping
Sleeping
Download Dockerfile from tawhidbinomar/conceptvector: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/spaces/tawhidbinomar/conceptvector/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/tawhidbinomar/conceptvector/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/tawhidbinomar/conceptvector/resolve/main/Dockerfile
646 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Pre-download embedding model (optional, saves first-request time) | |
| RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')" | |
| # Copy application code | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |