Spaces:
Runtime error
Runtime error
Peter Michael Gits
Claude
Fix Dockerfile directory permissions - create /app as root before switching users
26096f4 Download Dockerfile_minimal from pgits/stt-gpu-service-python-v4: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/pgits/stt-gpu-service-python-v4/resolve/main/Dockerfile_minimal
- Command line
-
hf download hf://spaces/pgits/stt-gpu-service-python-v4/Dockerfile_minimal
-
curl -L -o Dockerfile_minimal https://huggingface.co/spaces/pgits/stt-gpu-service-python-v4/resolve/main/Dockerfile_minimal
549 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install minimal system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application | |
| COPY app.py . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Simple health check | |
| HEALTHCHECK --interval=30s --timeout=30s --start-period=60s --retries=3 \ | |
| CMD curl -f http://localhost:7860/health || exit 1 | |
| # Run application | |
| CMD ["python", "app.py"] | |