Spaces:
Runtime error
Runtime error
Download Dockerfile from Andolinism/TelegramChatSummarizer: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/Andolinism/TelegramChatSummarizer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Andolinism/TelegramChatSummarizer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Andolinism/TelegramChatSummarizer/resolve/main/Dockerfile
512 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Create cache directories with proper permissions | |
| RUN mkdir -p /tmp/hf_cache /app/nltk_data && chmod 777 /tmp/hf_cache /app/nltk_data | |
| # Copy requirements and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Set environment variables for cache directories | |
| ENV TRANSFORMERS_CACHE=/tmp/hf_cache | |
| ENV HF_HOME=/tmp/hf_cache | |
| ENV NLTK_DATA=/app/nltk_data | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |