Spaces:
Runtime error
Runtime error
Download Dockerfile from afaceuser09/InfinityGRM: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/spaces/afaceuser09/InfinityGRM/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/afaceuser09/InfinityGRM/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/afaceuser09/InfinityGRM/resolve/main/Dockerfile
683 Bytes
| # Start from your original base python environment image | |
| FROM python:3.9-slim | |
| # Install basic system tools | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set up Hugging Face runtime user security compliance constraints | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| # Copy and install basic python packages | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy remaining implementation assets safely | |
| COPY --chown=user . /app | |
| RUN mkdir -p /app/static | |
| # Launch search_pipeline.py directly | |
| CMD ["python", "search_pipeline.py"] |