Spaces:
Sleeping
Sleeping
Download Dockerfile from Mister2005/bge-embedding-api: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/spaces/Mister2005/bge-embedding-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Mister2005/bge-embedding-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Mister2005/bge-embedding-api/resolve/main/Dockerfile
400 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY app.py . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Set environment variable for HuggingFace Spaces | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| # Run the application | |
| CMD ["python", "app.py"] | |