James Trageser (jtrag)
feat: standard environment-based authentication for HF Hub
b46dbbf unverified Download Dockerfile from Nexus-Resonance-Codex/LLM-Infinite-Context-Engine: direct link, hf CLI and curl.
- Browser
- Download file 801 Bytes
-
https://huggingface.co/spaces/Nexus-Resonance-Codex/LLM-Infinite-Context-Engine/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Nexus-Resonance-Codex/LLM-Infinite-Context-Engine/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Nexus-Resonance-Codex/LLM-Infinite-Context-Engine/resolve/main/Dockerfile
801 Bytes
| # Use Python 3.12 as the base image | |
| FROM python:3.12-slim | |
| # Set environment variables | |
| ENV PYTHONUNBUFFERED=1 \ | |
| GRADIO_SERVER_NAME="0.0.0.0" \ | |
| HOME=/home/user | |
| # Create a non-root user | |
| RUN useradd -m -u 1000 user | |
| WORKDIR $HOME/app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN pip install --no-cache-dir huggingface_hub | |
| # Copy the application code and local logic shards | |
| COPY --chown=user . . | |
| # Install the local phi_infinity_lattice_compression package | |
| RUN pip install -e . | |
| # Expose the port Gradio runs on | |
| EXPOSE 7860 | |
| # Start the application | |
| CMD ["python", "app.py"] | |