Spaces:
Sleeping
Sleeping
Download python-services/service3/Dockerfile from jackkuo/streamlit-macp-agents: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/jackkuo/streamlit-macp-agents/resolve/main/python-services/service3/Dockerfile
- Command line
-
hf download hf://spaces/jackkuo/streamlit-macp-agents/python-services/service3/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jackkuo/streamlit-macp-agents/resolve/main/python-services/service3/Dockerfile
519 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Expose port | |
| EXPOSE 8000 | |
| # Health check | |
| HEALTHCHECK CMD curl --fail http://localhost:8000/health || exit 1 | |
| # Run the service | |
| CMD ["python", "main.py"] |