Download Dockerfile from aradhyapavan/code-hypothesis-multi-personality-bot: direct link, hf CLI and curl.
- Browser
- Download file 739 Bytes
-
https://huggingface.co/spaces/aradhyapavan/code-hypothesis-multi-personality-bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/aradhyapavan/code-hypothesis-multi-personality-bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/aradhyapavan/code-hypothesis-multi-personality-bot/resolve/main/Dockerfile
739 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| QUIET=1 \ | |
| GRPC_VERBOSITY=NONE \ | |
| GRPC_TRACE= \ | |
| TF_CPP_MIN_LOG_LEVEL=3 | |
| WORKDIR /app | |
| # System deps (optional minimal set) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| COPY . . | |
| # Ensure a writable data directory for SQLite | |
| RUN mkdir -p /app/data && chmod -R 777 /app/data | |
| # Default DB_PATH for SQLite | |
| ENV DB_PATH=/app/data/chat_data.db | |
| # Hugging Face Spaces passes PORT env | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Default command | |
| CMD ["python", "app.py"] | |