Spaces:
Runtime error
Runtime error
Download Dockerfile from omwankhede/agentai: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/spaces/omwankhede/agentai/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/omwankhede/agentai/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/omwankhede/agentai/resolve/main/Dockerfile
680 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PYTHONPATH=/app | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y gcc g++ git curl && rm -rf /var/lib/apt/lists/* | |
| COPY requirement.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirement.txt | |
| RUN mkdir -p /app/AINews /app/src/langgraphagenticai | |
| COPY . . | |
| RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app | |
| USER appuser | |
| EXPOSE 8501 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost:8501/_stcore/health || exit 1 | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |