Spaces:
Paused
Paused
Download Dockerfile from codelion/LLMSearchEngine: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/spaces/codelion/LLMSearchEngine/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/codelion/LLMSearchEngine/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/codelion/LLMSearchEngine/resolve/main/Dockerfile
437 Bytes
| # Use official Python runtime as a parent image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the app code | |
| COPY app.py . | |
| # Expose the port HF Spaces expects | |
| EXPOSE 7860 | |
| # Set environment variable for Flask to run on the correct port | |
| ENV PORT=7860 | |
| # Run the Flask app | |
| CMD ["python", "app.py"] |