Spaces:
Sleeping
Sleeping
Download Dockerfile from Keyvan1986/Emma: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/Keyvan1986/Emma/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Keyvan1986/Emma/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Keyvan1986/Emma/resolve/main/Dockerfile
486 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu | |
| # تنظیم متغیر محیطی برای کش tiktoken و دانلود فایل توکنایزر در مرحله بیلد | |
| ENV TIKTOKEN_CACHE_DIR=/tiktoken_cache | |
| RUN mkdir -p /tiktoken_cache && \ | |
| python -c "import tiktoken; tiktoken.get_encoding('cl100k_base')" | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |