Spaces:
Sleeping
Sleeping
Download Dockerfile from OliverPerrin/LexiMind: direct link, hf CLI and curl.
- Browser
- Download file 783 Bytes
-
https://huggingface.co/spaces/OliverPerrin/LexiMind/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/OliverPerrin/LexiMind/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/OliverPerrin/LexiMind/resolve/main/Dockerfile
783 Bytes
| FROM python:3.12-slim | |
| # Force rebuild: 2026-03-10-v3 | |
| WORKDIR /app | |
| # Copy only requirements first (for better caching) | |
| COPY requirements-demo.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements-demo.txt | |
| # Copy source code (demo only needs the gradio script and data) | |
| COPY scripts/demo_gradio.py scripts/ | |
| COPY data/discovery_dataset.jsonl data/ | |
| # Copy evaluation metrics if available (demo handles absence gracefully) | |
| RUN mkdir -p outputs | |
| COPY outputs/evaluation_report.jso[n] outputs/ | |
| # Set environment variables for Gradio | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| ENV GRADIO_SERVER_PORT="7860" | |
| ENV GRADIO_ANALYTICS_ENABLED="False" | |
| ENV PYTHONUNBUFFERED="1" | |
| EXPOSE 7860 | |
| CMD ["python", "scripts/demo_gradio.py"] | |