Spaces:
Sleeping
Sleeping
Download Dockerfile from speako/llama-server: direct link, hf CLI and curl.
- Browser
- Download file 658 Bytes
-
https://huggingface.co/spaces/speako/llama-server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/speako/llama-server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/speako/llama-server/resolve/main/Dockerfile
658 Bytes
| FROM python:3.9-slim | |
| # ์์คํ ์์กด์ฑ ์ค์น | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ์์ ๋๋ ํ ๋ฆฌ ์ค์ | |
| WORKDIR /app | |
| # ์บ์ ๋๋ ํ ๋ฆฌ ์์ฑ ๋ฐ ํผ๋ฏธ์ ๋ถ์ฌ | |
| RUN mkdir -p /app/cache && chmod -R 777 /app/cache | |
| # ์บ์ ํ๊ฒฝ ๋ณ์ ์ค์ | |
| ENV HF_HOME=/app/cache | |
| ENV TRANSFORMERS_CACHE=/app/cache | |
| ENV HUGGINGFACE_HUB_CACHE=/app/cache | |
| # requirements.txt ์ค์น | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # ์์ค ๋ณต์ฌ | |
| COPY . . | |
| # ํฌํธ ๋ ธ์ถ | |
| EXPOSE 7860 | |
| # ์ฑ ์คํ | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |