Spaces:
Running
Running
Download docker/Dockerfile from CaffeinatedCoding/anomalyOS: direct link, hf CLI and curl.
- Browser
- Download file 617 Bytes
-
https://huggingface.co/spaces/CaffeinatedCoding/anomalyOS/resolve/main/docker/Dockerfile
- Command line
-
hf download hf://spaces/CaffeinatedCoding/anomalyOS/docker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/CaffeinatedCoding/anomalyOS/resolve/main/docker/Dockerfile
617 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Create necessary directories | |
| RUN mkdir -p logs models data reports | |
| # Expose port | |
| EXPOSE 8000 | |
| # Health check | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ | |
| CMD curl -f http://localhost:8000/health || exit 1 | |
| # Run the application | |
| CMD ["python", "app.py"] | |