Spaces:
Sleeping
Sleeping
Download Dockerfile from FluffyAIcode/LLM-KA-Cache-Compress: direct link, hf CLI and curl.
- Browser
- Download file 708 Bytes
-
https://huggingface.co/spaces/FluffyAIcode/LLM-KA-Cache-Compress/resolve/caaa5014ebab3ea1a7ff6bbad27f4ccb178ef0d9/Dockerfile
- Command line
-
hf download hf://spaces/FluffyAIcode/LLM-KA-Cache-Compress@caaa5014ebab3ea1a7ff6bbad27f4ccb178ef0d9/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/FluffyAIcode/LLM-KA-Cache-Compress/resolve/caaa5014ebab3ea1a7ff6bbad27f4ccb178ef0d9/Dockerfile
708 Bytes
| # syntax=docker/dockerfile:1.6 | |
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| HF_HOME=/home/user/.cache/huggingface | |
| WORKDIR $HOME/app | |
| COPY --chown=user:user requirements.txt . | |
| RUN pip install --no-cache-dir --user --upgrade pip && \ | |
| pip install --no-cache-dir --user \ | |
| --extra-index-url https://download.pytorch.org/whl/cpu \ | |
| -r requirements.txt | |
| COPY --chown=user:user app.py README.md ./ | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |